diff options
| author | Glenn Morris | 2009-09-02 03:22:00 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-09-02 03:22:00 +0000 |
| commit | ed4ba8dfc41c4906185f3496f248ece64117daf1 (patch) | |
| tree | 7a5fc974dd2eff68a5287746a1b229563f1802b3 | |
| parent | 0d00c61c1235fb9e54a8b6b4ef8cbbcc6271da83 (diff) | |
| download | emacs-ed4ba8dfc41c4906185f3496f248ece64117daf1.tar.gz emacs-ed4ba8dfc41c4906185f3496f248ece64117daf1.zip | |
(time-add): Suppress warnings from compat function.
| -rw-r--r-- | lisp/net/newst-backend.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el index 56254ccd539..6d8b32965b9 100644 --- a/lisp/net/newst-backend.el +++ b/lisp/net/newst-backend.el | |||
| @@ -442,10 +442,15 @@ buffers *newsticker-wget-<feed>* will not be closed." | |||
| 442 | ;; ====================================================================== | 442 | ;; ====================================================================== |
| 443 | ;;; Compatibility section, XEmacs, Emacs | 443 | ;;; Compatibility section, XEmacs, Emacs |
| 444 | ;; ====================================================================== | 444 | ;; ====================================================================== |
| 445 | |||
| 446 | ;; FIXME It is bad practice to define compat functions with such generic names. | ||
| 447 | |||
| 448 | ;; This is not needed in Emacs >= 22.1. | ||
| 445 | (unless (fboundp 'time-add) | 449 | (unless (fboundp 'time-add) |
| 446 | (require 'time-date);;FIXME | 450 | (require 'time-date);;FIXME |
| 447 | (defun time-add (t1 t2) | 451 | (defun time-add (t1 t2) |
| 448 | (seconds-to-time (+ (time-to-seconds t1) (time-to-seconds t2))))) | 452 | (with-no-warnings ; don't warn about obsolete time-to-seconds in 23.2 |
| 453 | (seconds-to-time (+ (time-to-seconds t1) (time-to-seconds t2)))))) | ||
| 449 | 454 | ||
| 450 | (unless (fboundp 'match-string-no-properties) | 455 | (unless (fboundp 'match-string-no-properties) |
| 451 | (defalias 'match-string-no-properties 'match-string)) | 456 | (defalias 'match-string-no-properties 'match-string)) |