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

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

bug#17446: 24.4.50; What is the situation around `called-interactively-p


From: Michael Heerdegen
Subject: bug#17446: 24.4.50; What is the situation around `called-interactively-p'?
Date: Sun, 11 May 2014 06:24:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> The code I showed takes an interactive function with some args, rips
> the function apart to rebuild a new one whose interactive spec just
> returns those args.  If the function is a symbol, then recurse on
> (symbol-function fun).

Yes, it's a funny idea.

Stefan, what's the right approach to make commands that refer to
this-command or last-command work correctly when called with your code?
Should we add something like

  (when (symbolp fun) (setq this-command fun))  ?

Does your patch planned for later inclusion care about updating
this-command and last-command appropriately?


Thanks,

Michael.





reply via email to

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