]> git.eshelyaron.com Git - emacs.git/commitdiff
(Qdisabled_command_hook): New variable.
authorRichard M. Stallman <rms@gnu.org>
Thu, 15 Jul 1993 03:09:56 +0000 (03:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 15 Jul 1993 03:09:56 +0000 (03:09 +0000)
(Vdisabled_command_hook): Deleted.
(syms_of_keyboard): Corresponding changes.
(Fcommand_execute): Use Qdisabled_command_hook.

src/keyboard.c

index 3c52b74d38941cf969153d8fd3bdcd524389c9ca..21bdb6c16bde6038f4600ce72c6279166103ea58 100644 (file)
@@ -84,7 +84,7 @@ struct backtrace
 
 /* Non-nil disable property on a command means
    do not execute it; call disabled-command-hook's value instead.  */
-Lisp_Object Qdisabled, Vdisabled_command_hook;
+Lisp_Object Qdisabled, Qdisabled_command_hook;
 
 #define NUM_RECENT_KEYS (100)
 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.")
     {
       tem = Fget (cmd, Qdisabled);
       if (!NILP (tem))
-       return call1 (Vrun_hooks, Vdisabled_command_hook);
+       return call1 (Vrun_hooks, Qdisabled_command_hook);
     }
 
   while (1)
@@ -4918,6 +4918,9 @@ struct event_head head_table[] = {
 
 syms_of_keyboard ()
 {
+  Qdisabled_command_hook = intern ("disabled-command-hook");
+  staticpro (&Qdisabled_command_hook);
+
   Qself_insert_command = intern ("self-insert-command");
   staticpro (&Qself_insert_command);
 
@@ -5042,10 +5045,6 @@ syms_of_keyboard ()
   defsubr (&Scurrent_input_mode);
   defsubr (&Sexecute_extended_command);
 
-  DEFVAR_LISP ("disabled-command-hook", &Vdisabled_command_hook,
-    "Value is called instead of any command that is disabled\n\
-\(has a non-nil `disabled' property).");
-
   DEFVAR_LISP ("last-command-char", &last_command_char,
     "Last input event that was part of a command.");