mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-14 09:39:42 +00:00
Update documentation on this-command-keys to reflect new behavior
* doc/lispref/commands.texi (Command Loop Info): `this-command-keys' does not include the C-u any more, so remove that from the description and the example (bug#22107). * src/keyboard.c (Fthis_single_command_keys): Don't say that `this-command-keys' returns the C-u prefix (bug#22111).
This commit is contained in:
parent
0ab67a65f5
commit
5bc2f37dfb
@ -930,9 +930,8 @@ was specified to run but remapped into another command.
|
||||
|
||||
@defun this-command-keys
|
||||
This function returns a string or vector containing the key sequence
|
||||
that invoked the present command, plus any previous commands that
|
||||
generated the prefix argument for this command. Any events read by the
|
||||
command using @code{read-event} without a timeout get tacked on to the end.
|
||||
that invoked the present command. Any events read by the command
|
||||
using @code{read-event} without a timeout get tacked on to the end.
|
||||
|
||||
However, if the command has called @code{read-key-sequence}, it
|
||||
returns the last read key sequence. @xref{Key Sequence Input}. The
|
||||
@ -943,7 +942,7 @@ fit in a string. @xref{Input Events}.
|
||||
@group
|
||||
(this-command-keys)
|
||||
;; @r{Now use @kbd{C-u C-x C-e} to evaluate that.}
|
||||
@result{} "^U^X^E"
|
||||
@result{} "^X^E"
|
||||
@end group
|
||||
@end example
|
||||
@end defun
|
||||
|
@ -10566,8 +10566,6 @@ DEFUN ("this-single-command-keys", Fthis_single_command_keys,
|
||||
doc: /* Return the key sequence that invoked this command.
|
||||
More generally, it returns the last key sequence read, either by
|
||||
the command loop or by `read-key-sequence'.
|
||||
Unlike `this-command-keys', this function's value
|
||||
does not include prefix arguments.
|
||||
The value is always a vector. */)
|
||||
(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user