bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#41864: 28.0.50; funcall: attempting to call a macro does not always


From: Andreas Schwab
Subject: bug#41864: 28.0.50; funcall: attempting to call a macro does not always complain
Date: Sat, 17 Oct 2020 20:08:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

On Okt 17 2020, Stefan Kangas wrote:

> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> Worksforme.
>>
>> ELISP> (defmacro mac/z () "z")
>> mac/z
>> ELISP> (funcall (function mac/z))
>> *** Eval error ***  Invalid function: mac/z
>
> I see the same in IELM, but not in *scratch*.

ELISP> (macroexpand-all (eval-sexp-add-defvars (elisp--eval-defun-1 
(macroexpand '(funcall (function mac/z))))))
(progn "z")

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

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