diff options
| author | Glenn Morris | 2007-11-20 04:05:18 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-20 04:05:18 +0000 |
| commit | 7a6e37202cf8c766d90ba1b06c829ae2810abdbd (patch) | |
| tree | bd5bf57352e085b1d94de9e408077a4c95d5ec01 | |
| parent | 5080af45b492f281f6a9b02b4caad90f7277d04e (diff) | |
| download | emacs-7a6e37202cf8c766d90ba1b06c829ae2810abdbd.tar.gz emacs-7a6e37202cf8c766d90ba1b06c829ae2810abdbd.zip | |
(declare-function): Define as a no-op, for compatibility with Emacs 23.
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index 267173c1713..d38641e7e4a 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -103,6 +103,11 @@ The return value of this function is not used." | |||
| 103 | (eval-and-compile | 103 | (eval-and-compile |
| 104 | (put ',name 'byte-optimizer 'byte-compile-inline-expand)))) | 104 | (put ',name 'byte-optimizer 'byte-compile-inline-expand)))) |
| 105 | 105 | ||
| 106 | (defalias 'declare-function 'ignore | ||
| 107 | "In Emacs 22, does nothing. In 23, it will suppress byte-compiler warnings. | ||
| 108 | This definition is so that packages may take advantage of the | ||
| 109 | Emacs 23 feature and still remain compatible with Emacs 22.") | ||
| 110 | |||
| 106 | (defun make-obsolete (obsolete-name current-name &optional when) | 111 | (defun make-obsolete (obsolete-name current-name &optional when) |
| 107 | "Make the byte-compiler warn that OBSOLETE-NAME is obsolete. | 112 | "Make the byte-compiler warn that OBSOLETE-NAME is obsolete. |
| 108 | The warning will say that CURRENT-NAME should be used instead. | 113 | The warning will say that CURRENT-NAME should be used instead. |