changeset 79518:b6ebe0c6d1cb

Dan Nicolaescu <dann at ics.uci.edu> (declare-function): Change to a macro.
author Glenn Morris <rgm@gnu.org>
date Sat, 01 Dec 2007 21:30:13 +0000
parents 5f49af3d292b
children 1039328362ed
files lisp/emacs-lisp/byte-run.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/byte-run.el	Sat Dec 01 18:18:47 2007 +0000
+++ b/lisp/emacs-lisp/byte-run.el	Sat Dec 01 21:30:13 2007 +0000
@@ -103,10 +103,11 @@
      (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.