diff options
| author | Richard M. Stallman | 1993-07-15 03:09:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-15 03:09:56 +0000 |
| commit | 2e894dab2b26651c406574692a2f3903d95a6e05 (patch) | |
| tree | 9c9b237c4c2a1cbb0d6521a8e2d935eaee3fe8ed /src | |
| parent | 2e4301efa598474b666ef790973019c7e7dafcc9 (diff) | |
| download | emacs-2e894dab2b26651c406574692a2f3903d95a6e05.tar.gz emacs-2e894dab2b26651c406574692a2f3903d95a6e05.zip | |
(Qdisabled_command_hook): New variable.
(Vdisabled_command_hook): Deleted.
(syms_of_keyboard): Corresponding changes.
(Fcommand_execute): Use Qdisabled_command_hook.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 3c52b74d389..21bdb6c16bd 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -84,7 +84,7 @@ struct backtrace | |||
| 84 | 84 | ||
| 85 | /* Non-nil disable property on a command means | 85 | /* Non-nil disable property on a command means |
| 86 | do not execute it; call disabled-command-hook's value instead. */ | 86 | do not execute it; call disabled-command-hook's value instead. */ |
| 87 | Lisp_Object Qdisabled, Vdisabled_command_hook; | 87 | Lisp_Object Qdisabled, Qdisabled_command_hook; |
| 88 | 88 | ||
| 89 | #define NUM_RECENT_KEYS (100) | 89 | #define NUM_RECENT_KEYS (100) |
| 90 | int recent_keys_index; /* Index for storing next element into recent_keys */ | 90 | int recent_keys_index; /* Index for storing next element into recent_keys */ |
| @@ -4284,7 +4284,7 @@ Otherwise, that is done only if an arg is read using the minibuffer.") | |||
| 4284 | { | 4284 | { |
| 4285 | tem = Fget (cmd, Qdisabled); | 4285 | tem = Fget (cmd, Qdisabled); |
| 4286 | if (!NILP (tem)) | 4286 | if (!NILP (tem)) |
| 4287 | return call1 (Vrun_hooks, Vdisabled_command_hook); | 4287 | return call1 (Vrun_hooks, Qdisabled_command_hook); |
| 4288 | } | 4288 | } |
| 4289 | 4289 | ||
| 4290 | while (1) | 4290 | while (1) |
| @@ -4918,6 +4918,9 @@ struct event_head head_table[] = { | |||
| 4918 | 4918 | ||
| 4919 | syms_of_keyboard () | 4919 | syms_of_keyboard () |
| 4920 | { | 4920 | { |
| 4921 | Qdisabled_command_hook = intern ("disabled-command-hook"); | ||
| 4922 | staticpro (&Qdisabled_command_hook); | ||
| 4923 | |||
| 4921 | Qself_insert_command = intern ("self-insert-command"); | 4924 | Qself_insert_command = intern ("self-insert-command"); |
| 4922 | staticpro (&Qself_insert_command); | 4925 | staticpro (&Qself_insert_command); |
| 4923 | 4926 | ||
| @@ -5042,10 +5045,6 @@ syms_of_keyboard () | |||
| 5042 | defsubr (&Scurrent_input_mode); | 5045 | defsubr (&Scurrent_input_mode); |
| 5043 | defsubr (&Sexecute_extended_command); | 5046 | defsubr (&Sexecute_extended_command); |
| 5044 | 5047 | ||
| 5045 | DEFVAR_LISP ("disabled-command-hook", &Vdisabled_command_hook, | ||
| 5046 | "Value is called instead of any command that is disabled\n\ | ||
| 5047 | \(has a non-nil `disabled' property)."); | ||
| 5048 | |||
| 5049 | DEFVAR_LISP ("last-command-char", &last_command_char, | 5048 | DEFVAR_LISP ("last-command-char", &last_command_char, |
| 5050 | "Last input event that was part of a command."); | 5049 | "Last input event that was part of a command."); |
| 5051 | 5050 | ||