changeset 40791:97673fa0eaa7

(access_keymap): Don't use initializers on Lisp_Object.
author Richard M. Stallman <rms@gnu.org>
date Wed, 07 Nov 2001 03:35:05 +0000
parents 3b3c00fa282a
children 7ea12eee7004
files src/keymap.c
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Wed Nov 07 01:15:30 2001 +0000
+++ b/src/keymap.c	Wed Nov 07 03:35:05 2001 +0000
@@ -476,7 +476,10 @@
      int noinherit;
      int autoload;
 {
-  Lisp_Object val = Qunbound;
+  Lisp_Object val;
+
+  /* Qunbound in VAL means we have found no binding yet.  */
+  val = Qunbound;
 
   /* If idx is a list (some sort of mouse click, perhaps?),
      the index we want to use is the car of the list, which
@@ -516,7 +519,13 @@
 
   {
     Lisp_Object tail;
-    Lisp_Object t_binding = Qnil;
+
+    /* t_binding is where we put a default binding that applies,
+       to use in case we do not find a binding specifically
+       for this key sequence.
+
+    Lisp_Object t_binding;
+    t_binding = Qnil;
 
     /* If `t_ok' is 2, both `t' and generic-char bindings are accepted.
        If it is 1, only generic-char bindings are accepted.