diff options
| author | Lars Ingebrigtsen | 2019-06-14 13:23:11 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-14 13:24:47 +0200 |
| commit | 7486b8f4eb81d80be2e7bc772fc34c6174a4d44d (patch) | |
| tree | 064502d642168bf7ac59da4225d01f99075bef79 | |
| parent | 622bfdffa8b0c830bc6a979a2e9c114bad1ac114 (diff) | |
| download | emacs-7486b8f4eb81d80be2e7bc772fc34c6174a4d44d.tar.gz emacs-7486b8f4eb81d80be2e7bc772fc34c6174a4d44d.zip | |
Avoid compilation warning in byte-run
* lisp/emacs-lisp/byte-run.el (macro-declaration-function): Avoid
compilation warning by not using `symbol-function'.
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index 6a21a0c909d..3a2043bad75 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -45,7 +45,10 @@ So far, FUNCTION can only be a symbol, not a lambda expression." | |||
| 45 | ;; `macro-declaration-function' are both obsolete (as marked at the end of this | 45 | ;; `macro-declaration-function' are both obsolete (as marked at the end of this |
| 46 | ;; file) but used in many .elc files. | 46 | ;; file) but used in many .elc files. |
| 47 | 47 | ||
| 48 | (defvar macro-declaration-function #'macro-declaration-function | 48 | ;; We don't use #' here, because it's an obsolete function, and we |
| 49 | ;; can't use `with-suppressed-errors' here due to how this file is | ||
| 50 | ;; used in the bootstrapping process. | ||
| 51 | (defvar macro-declaration-function 'macro-declaration-function | ||
| 49 | "Function to process declarations in a macro definition. | 52 | "Function to process declarations in a macro definition. |
| 50 | The function will be called with two args MACRO and DECL. | 53 | The function will be called with two args MACRO and DECL. |
| 51 | MACRO is the name of the macro being defined. | 54 | MACRO is the name of the macro being defined. |