Dan Nicolaescu <dann at ics.uci.edu>

(declare-function): Change to a macro.
This commit is contained in:
Glenn Morris 2007-12-01 21:30:32 +00:00
parent ff71e76d03
commit c73c3ee9a0
2 changed files with 7 additions and 2 deletions

View file

@ -103,10 +103,11 @@ The return value of this function is not used."
(eval-and-compile
(put ',name 'byte-optimizer 'byte-compile-inline-expand))))
(defalias 'declare-function 'ignore
(defmacro declare-function (&rest args)
"In Emacs 22, does nothing. In 23, it will suppress byte-compiler warnings.
This definition is so that packages may take advantage of the
Emacs 23 feature and still remain compatible with Emacs 22.")
Emacs 23 feature and still remain compatible with Emacs 22."
nil)
(defun make-obsolete (obsolete-name current-name &optional when)
"Make the byte-compiler warn that OBSOLETE-NAME is obsolete.