Mercurial > emacs
diff lisp/emacs-lisp/byte-run.el @ 79452:92ec4fa5200d
(declare-function): Define as a no-op, for compatibility with Emacs 23.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 20 Nov 2007 04:05:18 +0000 |
parents | 935157c0b596 |
children | b6ebe0c6d1cb |
line wrap: on
line diff
--- a/lisp/emacs-lisp/byte-run.el Tue Nov 20 04:04:37 2007 +0000 +++ b/lisp/emacs-lisp/byte-run.el Tue Nov 20 04:05:18 2007 +0000 @@ -103,6 +103,11 @@ (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.