emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7486b8f: Avoid compilation warning in byte-run


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 7486b8f: Avoid compilation warning in byte-run
Date: Fri, 14 Jun 2019 07:24:57 -0400 (EDT)

branch: master
commit 7486b8f4eb81d80be2e7bc772fc34c6174a4d44d
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Avoid compilation warning in byte-run
    
    * lisp/emacs-lisp/byte-run.el (macro-declaration-function): Avoid
    compilation warning by not using `symbol-function'.
---
 lisp/emacs-lisp/byte-run.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 6a21a0c..3a2043b 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."
 ;; `macro-declaration-function' are both obsolete (as marked at the end of this
 ;; file) but used in many .elc files.
 
-(defvar macro-declaration-function #'macro-declaration-function
+;; We don't use #' here, because it's an obsolete function, and we
+;; can't use `with-suppressed-errors' here due to how this file is
+;; used in the bootstrapping process.
+(defvar macro-declaration-function 'macro-declaration-function
   "Function to process declarations in a macro definition.
 The function will be called with two args MACRO and DECL.
 MACRO is the name of the macro being defined.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]