summaryrefslogtreecommitdiff
path: root/lisp/gnus/ecomplete.el
diff options
context:
space:
mode:
authorKatsumi Yamaoka <yamaoka@jpl.org>2009-09-09 09:28:43 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2009-09-09 09:28:43 +0000
commitde0bdfe7aa97030b6174aba37f245c2bbf2d4ee5 (patch)
treed7955a763d1bb94432682f813ee6cc4eedb76bf5 /lisp/gnus/ecomplete.el
parentf9b7b5acb56f3d7a785d079eb13318e33bca9047 (diff)
downloademacs-de0bdfe7aa97030b6174aba37f245c2bbf2d4ee5.tar.gz
emacs-de0bdfe7aa97030b6174aba37f245c2bbf2d4ee5.tar.bz2
emacs-de0bdfe7aa97030b6174aba37f245c2bbf2d4ee5.zip
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.
Diffstat (limited to 'lisp/gnus/ecomplete.el')
-rw-r--r--lisp/gnus/ecomplete.el13
1 files changed, 10 insertions, 3 deletions
diff --git a/lisp/gnus/ecomplete.el b/lisp/gnus/ecomplete.el
index c2a22e3230c..ece8f2deff4 100644
--- a/lisp/gnus/ecomplete.el
+++ b/lisp/gnus/ecomplete.el
@@ -27,6 +27,11 @@
(eval-when-compile
(require 'cl))
+(eval-when-compile
+ (unless (fboundp 'with-no-warnings)
+ (defmacro with-no-warnings (&rest body)
+ `(progn ,@body))))
+
(defgroup ecomplete nil
"Electric completion of email addresses and the like."
:group 'mail)
@@ -56,9 +61,11 @@
(defun ecomplete-add-item (type key text)
(let ((elems (assq type ecomplete-database))
(now (string-to-number
- (format "%.0f" (if (featurep 'xemacs)
- (time-to-seconds (current-time))
- (float-time)))))
+ (format "%.0f" (if (and (fboundp 'float-time)
+ (subrp (symbol-function 'float-time)))
+ (float-time)
+ (with-no-warnings
+ (time-to-seconds (current-time)))))))
entry)
(unless elems
(push (setq elems (list type)) ecomplete-database))