# HG changeset patch
# User Glenn Morris <rgm@gnu.org>
# Date 1196544613 0
# Node ID b6ebe0c6d1cb728592dcea7d46f5190b125fd17e
# Parent  5f49af3d292bcab0824aa55dd0dad23ff18ffd55
Dan Nicolaescu  <dann at ics.uci.edu>

(declare-function): Change to a macro.

diff -r 5f49af3d292b -r b6ebe0c6d1cb lisp/emacs-lisp/byte-run.el
--- 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.