]> git.eshelyaron.com Git - emacs.git/commitdiff
(declare-function): Define as a no-op, for compatibility with Emacs 23.
authorGlenn Morris <rgm@gnu.org>
Tue, 20 Nov 2007 04:05:18 +0000 (04:05 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 20 Nov 2007 04:05:18 +0000 (04:05 +0000)
lisp/emacs-lisp/byte-run.el

index 267173c17132e66e0a218328035d4b6482b7f67e..d38641e7e4a8f22fbc6984f297e878e8220664ba 100644 (file)
@@ -103,6 +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
+  "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.")
+
 (defun make-obsolete (obsolete-name current-name &optional when)
   "Make the byte-compiler warn that OBSOLETE-NAME is obsolete.
 The warning will say that CURRENT-NAME should be used instead.