750 |
that invoked the present command, plus any previous commands that |
that invoked the present command, plus any previous commands that |
751 |
generated the prefix argument for this command. However, if the |
generated the prefix argument for this command. However, if the |
752 |
command has called @code{read-key-sequence}, it returns the last read |
command has called @code{read-key-sequence}, it returns the last read |
753 |
key sequence. @xref{Definition of read-key-sequence}. The value is a |
key sequence. @xref{Key Sequence Input}. The value is a string if |
754 |
string if all events in the sequence were characters that fit in a |
all events in the sequence were characters that fit in a string. |
755 |
string. @xref{Input Events}. |
@xref{Input Events}. |
756 |
|
|
757 |
@example |
@example |
758 |
@group |
@group |
2019 |
|
|
2020 |
@defun read-key-sequence prompt |
@defun read-key-sequence prompt |
2021 |
@cindex key sequence |
@cindex key sequence |
|
@anchor{Definition of read-key-sequence} |
|
2022 |
This function reads a key sequence and returns it as a string or |
This function reads a key sequence and returns it as a string or |
2023 |
vector. It keeps reading events until it has accumulated a complete key |
vector. It keeps reading events until it has accumulated a complete key |
2024 |
sequence; that is, enough to specify a non-prefix command using the |
sequence; that is, enough to specify a non-prefix command using the |
2905 |
alter the user's init file so that this will apply to future sessions. |
alter the user's init file so that this will apply to future sessions. |
2906 |
@end deffn |
@end deffn |
2907 |
|
|
2908 |
@defvar disabled-command-hook |
@defvar disabled-command-function |
2909 |
When the user invokes a disabled command interactively, this normal hook |
The value of this variable should be a function. When the user |
2910 |
is run instead of the disabled command. The hook functions can use |
invokes a disabled command interactively, this function is called |
2911 |
@code{this-command-keys} to determine what the user typed to run the |
instead of the disabled command. It can use @code{this-command-keys} |
2912 |
command, and thus find the command itself. @xref{Hooks}. |
to determine what the user typed to run the command, and thus find the |
2913 |
|
command itself. |
2914 |
By default, @code{disabled-command-hook} contains a function that asks |
|
2915 |
the user whether to proceed. If the value is @code{nil}, then all |
The value may also be @code{nil}. Then all commands work normally, |
2916 |
commands work normally, even disabled ones. |
even disabled ones. |
2917 |
|
|
2918 |
|
By default, the value is a function that asks the user whether to |
2919 |
|
proceed. |
2920 |
@end defvar |
@end defvar |
2921 |
|
|
2922 |
@node Command History |
@node Command History |