9623 |
|
|
9624 |
DEFUN ("this-command-keys", Fthis_command_keys, Sthis_command_keys, 0, 0, 0, |
DEFUN ("this-command-keys", Fthis_command_keys, Sthis_command_keys, 0, 0, 0, |
9625 |
doc: /* Return the key sequence that invoked this command. |
doc: /* Return the key sequence that invoked this command. |
9626 |
|
However, if the command has called `read-key-sequence', it returns |
9627 |
|
the the last key sequence that has been read. |
9628 |
The value is a string or a vector. */) |
The value is a string or a vector. */) |
9629 |
() |
() |
9630 |
{ |
{ |
9633 |
} |
} |
9634 |
|
|
9635 |
DEFUN ("this-command-keys-vector", Fthis_command_keys_vector, Sthis_command_keys_vector, 0, 0, 0, |
DEFUN ("this-command-keys-vector", Fthis_command_keys_vector, Sthis_command_keys_vector, 0, 0, 0, |
9636 |
doc: /* Return the key sequence that invoked this command, as a vector. */) |
doc: /* Return the key sequence that invoked this command, as a vector. |
9637 |
|
However, if the command has called `read-key-sequence', it returns |
9638 |
|
the the last key sequence that has been read. */) |
9639 |
() |
() |
9640 |
{ |
{ |
9641 |
return Fvector (this_command_key_count, |
return Fvector (this_command_key_count, |
9645 |
DEFUN ("this-single-command-keys", Fthis_single_command_keys, |
DEFUN ("this-single-command-keys", Fthis_single_command_keys, |
9646 |
Sthis_single_command_keys, 0, 0, 0, |
Sthis_single_command_keys, 0, 0, 0, |
9647 |
doc: /* Return the key sequence that invoked this command. |
doc: /* Return the key sequence that invoked this command. |
9648 |
|
More generally, it returns the last key sequence read, either by |
9649 |
|
the command loop or by `read-key-sequence'. |
9650 |
Unlike `this-command-keys', this function's value |
Unlike `this-command-keys', this function's value |
9651 |
does not include prefix arguments. |
does not include prefix arguments. |
9652 |
The value is always a vector. */) |
The value is always a vector. */) |
9661 |
DEFUN ("this-single-command-raw-keys", Fthis_single_command_raw_keys, |
DEFUN ("this-single-command-raw-keys", Fthis_single_command_raw_keys, |
9662 |
Sthis_single_command_raw_keys, 0, 0, 0, |
Sthis_single_command_raw_keys, 0, 0, 0, |
9663 |
doc: /* Return the raw events that were read for this command. |
doc: /* Return the raw events that were read for this command. |
9664 |
|
More generally, it returns the last key sequence read, either by |
9665 |
|
the command loop or by `read-key-sequence'. |
9666 |
Unlike `this-single-command-keys', this function's value |
Unlike `this-single-command-keys', this function's value |
9667 |
shows the events before all translations (except for input methods). |
shows the events before all translations (except for input methods). |
9668 |
The value is always a vector. */) |
The value is always a vector. */) |
9696 |
DEFUN ("clear-this-command-keys", Fclear_this_command_keys, |
DEFUN ("clear-this-command-keys", Fclear_this_command_keys, |
9697 |
Sclear_this_command_keys, 0, 0, 0, |
Sclear_this_command_keys, 0, 0, 0, |
9698 |
doc: /* Clear out the vector that `this-command-keys' returns. |
doc: /* Clear out the vector that `this-command-keys' returns. |
9699 |
Clear vector containing last 100 events. */) |
Also clear the record of the last 100 events. */) |
9700 |
() |
() |
9701 |
{ |
{ |
9702 |
int i; |
int i; |