GNU bug report logs -
#3597
23.0.94; [PATCH] org-store-link broken within kbd macros
Previous Next
Full log
View this message in rfc822 format
[Sorry about setting Cc instead X-Debbugs-Cc and causing the duplicate
report. I set a proper Mail-Followup-To header now.]
Carsten Dominik writes:
> This looks to me as if it was a bug in keyboard macro execution,
> which should call functions interactively.
The docstring for interactive-p has the following paragraph:
,----[ C-h f interactive-p RET ]
| The only known proper use of `interactive-p' is in deciding whether to
| display a helpful message, or how to display it. If you're thinking
| of using it for any other purpose, it is quite likely that you're
| making a mistake. Think: what do you want to do when the command is
| called from a keyboard macro?
`----
The elisp reference states:
,----[ (info "(elisp)Distinguish Interactive") ]
| -- Function: interactive-p
| This function returns `t' if the containing function (the one
| whose code includes the call to `interactive-p') was called in
| direct response to user input. This means that it was called with
| the function `call-interactively', and that a keyboard macro is
| not running, and that Emacs is not running in batch mode.
`----
This sounds like interactive-p is working as documented and the
excplicit check I proposed would be neccessary.
Thanks,
andreas
This bug report was last modified 14 years and 87 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.