gnus-util.el (gnus-float-time): Don't pass the third argument docstring to `defalias...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 29 Oct 2014 03:26:31 +0000 (03:26 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 29 Oct 2014 03:26:31 +0000 (03:26 +0000)
lisp/ChangeLog
lisp/gnus-util.el

index 250d2e8..03dadc6 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-29  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-util.el (gnus-float-time):
+       Don't pass the third argument docstring to `defalias' for XEmacs.
+
 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
 
        Simplify use of current-time and friends.
index 15f3aed..fce82db 100644 (file)
@@ -313,12 +313,13 @@ Symbols are also allowed; their print names are used instead."
 
 ;; Every version of Emacs Gnus supports has built-in float-time.
 ;; The featurep test silences an irritating compiler warning.
-(defalias 'gnus-float-time
-  (if (or (featurep 'emacs)
-         (fboundp 'float-time))
-      'float-time 'time-to-seconds)
-  "Convert time value TIME to a floating point number.
+(if (featurep 'emacs)
+    (defalias 'gnus-float-time 'float-time
+      "Convert time value TIME to a floating point number.
 TIME defaults to the current time.")
+  ;; `defalias' takes only two arguments in XEmacs.
+  (defalias 'gnus-float-time
+    (if (fboundp 'float-time) 'float-time 'time-to-seconds)))
 
 ;;; Keymap macros.