summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-12-01 21:30:32 +0000
committerGlenn Morris <rgm@gnu.org>2007-12-01 21:30:32 +0000
commitc73c3ee9a090c5af501b95501515e98389067241 (patch)
tree7050c9ae2ceaa79dfde5722f1c4ad09d08900d4d /lisp/emacs-lisp
parentff71e76d0391c44f1a16f93ba1b363230417634c (diff)
downloademacs-c73c3ee9a090c5af501b95501515e98389067241.tar.gz
emacs-c73c3ee9a090c5af501b95501515e98389067241.tar.bz2
emacs-c73c3ee9a090c5af501b95501515e98389067241.zip
Dan Nicolaescu <dann at ics.uci.edu>
(declare-function): Change to a macro.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/byte-run.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index d38641e7e4a..c5946d46b86 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -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.