From: Katsumi Yamaoka Date: Wed, 29 Oct 2014 03:26:31 +0000 (+0000) Subject: gnus-util.el (gnus-float-time): Don't pass the third argument docstring to `defalias... X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=59ff3c505c15c9ffebcfa127f928e0882703538f;hp=75723739287ba519d3cb65f4d7caaffcb662ebd3 gnus-util.el (gnus-float-time): Don't pass the third argument docstring to `defalias' for XEmacs --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 250d2e8e9..03dadc6de 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-10-29 Katsumi Yamaoka + + * gnus-util.el (gnus-float-time): + Don't pass the third argument docstring to `defalias' for XEmacs. + 2014-10-29 Paul Eggert Simplify use of current-time and friends. diff --git a/lisp/gnus-util.el b/lisp/gnus-util.el index 15f3aede8..fce82db98 100644 --- a/lisp/gnus-util.el +++ b/lisp/gnus-util.el @@ -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.