diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-14 16:44:00 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-14 16:44:00 +0100 |
commit | 252366866b5691965c8c752aa103ab157a6f3aaa (patch) | |
tree | b7a11dcc5f21fc0603186ae7ef5f1d81477100e9 /doc | |
parent | f6454ad6cd0dba9ab7ebff9b2959c05a607442ed (diff) | |
download | emacs-252366866b5691965c8c752aa103ab157a6f3aaa.tar.gz |
Add a new recursively bound `current-minibuffer-command' variable
* doc/lispref/commands.texi (Command Loop Info): Document it
(bug#45177).
* src/callint.c (Fcall_interactively): Bind it.
* src/keyboard.c (syms_of_keyboard): Define
current-minibuffer-command.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/commands.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index ebfda01671e..15d7e4e3a71 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi @@ -928,6 +928,13 @@ remapping), and @code{this-original-command} gives the command that was specified to run but remapped into another command. @end defvar +@defvar current-minibuffer-command +This has the same value as @code{this-command}, but is bound +recursively when entering a minibuffer. This variable can be used +from minibuffer hooks and the like to determine what command opened +the current minibuffer session. +@end defvar + @defun this-command-keys This function returns a string or vector containing the key sequence that invoked the present command. Any events read by the command |