mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
Fix byte-compilation of defalias with a constant macro cons pair
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defalias): Quote the function name in '(macro . function-name), since we eval it later. * test/lisp/emacs-lisp/bytecomp-tests.el (test-eager-load-macro-expand-defalias): New test. (Bug#78792)
This commit is contained in:
parent
39721a4d79
commit
075ebed98f
2 changed files with 20 additions and 1 deletions
|
|
@ -5166,7 +5166,8 @@ binding slots have been popped."
|
|||
(pcase-let*
|
||||
;; `macro' is non-nil if it defines a macro.
|
||||
;; `fun' is the function part of `arg' (defaults to `arg').
|
||||
(((or (and (or `(cons 'macro ,fun) `'(macro . ,fun)) (let macro t))
|
||||
(((or (and (or `(cons 'macro ,fun) `'(macro . ,(app (list 'quote) fun)))
|
||||
(let macro t))
|
||||
(and (let fun arg) (let macro nil)))
|
||||
arg)
|
||||
;; `lam' is the lambda expression in `fun' (or nil if not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue