comparison lisp/gnus/gnus-util.el @ 104889:18c2aea5083c

2009-09-09 Katsumi Yamaoka <yamaoka@jpl.org> * gnus-util.el (gnus-float-time): Alias to float-time if it exists. * ecomplete.el (with-no-warnings): Define it for old Emacsen. (ecomplete-add-item): Don't use (featurep 'xemacs) to check if float-time is available; suppress compile warning for time-to-seconds. 2009-09-07 Katsumi Yamaoka <yamaoka@jpl.org> * mm-encode.el (mm-encode-buffer): Don't force 7bit encoding since MTA may break data. Suggested by Dmitri Paduchikh <dpaduch@k66.ru>. Add the optional argument `encoding' that overrides the default. * mml.el (mml-generate-mime-1): Pass encoding defined by a user to mm-encode-buffer. 2009-09-02 Karl Kleinpaste <karl@kleinpaste.org> * gnus-art.el (gnus-article-read-summary-keys): Fix gnus-buffer-configuration's value temporarily used.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Wed, 09 Sep 2009 09:28:43 +0000
parents 409fc58fd03d
children e86ba08d7eac
comparison
equal deleted inserted replaced
104888:b3fb8c98c899 104889:18c2aea5083c
283 (let ((fdate (nth 5 (file-attributes file)))) 283 (let ((fdate (nth 5 (file-attributes file))))
284 (or (> (car fdate) (car date)) 284 (or (> (car fdate) (car date))
285 (and (= (car fdate) (car date)) 285 (and (= (car fdate) (car date))
286 (> (nth 1 fdate) (nth 1 date)))))) 286 (> (nth 1 fdate) (nth 1 date))))))
287 287
288 (defun gnus-float-time (&optional time) 288 (eval-and-compile
289 "Convert time value TIME to a floating point number. 289 (if (and (fboundp 'float-time)
290 (subrp (symbol-function 'float-time)))
291 (defalias 'gnus-float-time 'float-time)
292 (defun gnus-float-time (&optional time)
293 "Convert time value TIME to a floating point number.
290 TIME defaults to the current time." 294 TIME defaults to the current time."
291 (if (featurep 'xemacs) 295 (with-no-warnings (time-to-seconds (or time (current-time)))))))
292 (time-to-seconds (or time (current-time)))
293 (float-time time)))
294 296
295 ;;; Keymap macros. 297 ;;; Keymap macros.
296 298
297 (defmacro gnus-local-set-keys (&rest plist) 299 (defmacro gnus-local-set-keys (&rest plist)
298 "Set the keys in PLIST in the current keymap." 300 "Set the keys in PLIST in the current keymap."