# HG changeset patch # User Glenn Morris # Date 1195531518 0 # Node ID 92ec4fa5200dd4dda377f4f9a45136613715de5b # Parent e9492eb5e7190413d37c691acf30a72320fbf135 (declare-function): Define as a no-op, for compatibility with Emacs 23. diff -r e9492eb5e719 -r 92ec4fa5200d lisp/emacs-lisp/byte-run.el --- 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.