emacs-devel
[Top][All Lists]
Advanced

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

Re: scratch/command 064f146 1/2: Change command to interactive ... modes


From: Lars Ingebrigtsen
Subject: Re: scratch/command 064f146 1/2: Change command to interactive ... modes
Date: Thu, 18 Feb 2021 11:38:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Stefan M says that macroexpansion happens differently with different
> commands, which makes sense, but...  er...  what is making `eval-defun'
> in this particular Emacs not macroexpand, while if I start a new one, it
> will?  I guess I could have messed up some of the Emacs internals,
> somehow?

Aha!

I've got a recipe to reproduce the problem:

./src/emacs -l /tmp/fut-int.elc -l edebug

(defun foo-command1 ()
  (future-interactive nil emacs-lisp-mode)
  (+ 1 2))

(symbol-function 'foo-command1)
=> (lambda nil (interactive nil emacs-lisp-mode) (+ 1 2))

That is, if edebug is loaded, then `C-M-x' (even if given no prefix)
stops macroexpanding the defun?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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