]> git.eshelyaron.com Git - emacs.git/commitdiff
Port current-time change to XEmacs 21.4.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Oct 2014 03:21:06 +0000 (20:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Oct 2014 03:21:06 +0000 (20:21 -0700)
See the buildbot log at:
http://www.randomsample.de:4456/builders/xemacs21.4-linux/builds/1285
* lisp/erc/erc.el (erc-emacs-time-to-erc-time)
(erc-emacs-time-to-erc-time):
* lisp/gnus/gnus-util.el (gnus-float-time):
* lisp/org/org-compat.el (org-float-time):
Use 2-arg defalias, since XEmacs 21.4 doesn't support 3-arg.

lisp/erc/erc.el
lisp/gnus/gnus-util.el
lisp/org/org-compat.el

index 9363d4a826293f537667dc1f0da12acfcb9e1094..3bb68abfc9e67111c0569d17a30db9b9356c37fc 100644 (file)
@@ -5957,14 +5957,9 @@ Returns a list of the form (HIGH LOW), compatible with Emacs time format."
           (truncate (mod n 65536)))))
 
 (defalias 'erc-emacs-time-to-erc-time
-  (if (featurep 'xemacs) 'time-to-seconds 'float-time)
-  "Convert time value TIME to a floating point number.
-TIME defaults to the current time.")
+  (if (featurep 'xemacs) 'time-to-seconds 'float-time))
 
-(defalias 'erc-current-time 'erc-emacs-time-to-erc-time
-  "Return the `current-time' as a number of seconds since the epoch.
-
-See also `erc-emacs-time-to-erc-time'.")
+(defalias 'erc-current-time 'erc-emacs-time-to-erc-time)
 
 (defun erc-time-diff (t1 t2)
   "Return the time difference in seconds between T1 and T2."
index 15f3aede8891e947cc074c5dec9e3d1631bf406f..526aa7785ca812bb4bfe2907488cb3209993d59a 100644 (file)
@@ -316,9 +316,7 @@ Symbols are also allowed; their print names are used instead."
 (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.
-TIME defaults to the current time.")
+      'float-time 'time-to-seconds))
 
 ;;; Keymap macros.
 
index 122658970f5d3c605a3406cfb4a895d40cd18487..447505ceafb358f31993624789ea54683e18aa9b 100644 (file)
@@ -412,9 +412,7 @@ Pass BUFFER to the XEmacs version of `move-to-column'."
           (set-mouse-position frame (1- (frame-width frame)) 0)))))
 
 (defalias 'org-float-time
-  (if (featurep 'xemacs) 'time-to-seconds 'float-time)
-  "Convert time value TIME to a floating point number.
-TIME defaults to the current time.")
+  (if (featurep 'xemacs) 'time-to-seconds 'float-time))
 
 ;; `user-error' is only available from 24.2.50 on
 (unless (fboundp 'user-error)