Commit ed4ba8df authored by Glenn Morris's avatar Glenn Morris
Browse files

(time-add): Suppress warnings from compat function.

parent 0d00c61c
......@@ -442,10 +442,15 @@ buffers *newsticker-wget-<feed>* will not be closed."
;; ======================================================================
;;; Compatibility section, XEmacs, Emacs
;; ======================================================================
;; FIXME It is bad practice to define compat functions with such generic names.
;; This is not needed in Emacs >= 22.1.
(unless (fboundp 'time-add)
(require 'time-date);;FIXME
(defun time-add (t1 t2)
(seconds-to-time (+ (time-to-seconds t1) (time-to-seconds t2)))))
(with-no-warnings ; don't warn about obsolete time-to-seconds in 23.2
(seconds-to-time (+ (time-to-seconds t1) (time-to-seconds t2))))))
(unless (fboundp 'match-string-no-properties)
(defalias 'match-string-no-properties 'match-string))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment