]> git.eshelyaron.com Git - emacs.git/commitdiff
* keyboard.c (menu_bar_one_keymap): If the key's binding is the
authorJim Blandy <jimb@redhat.com>
Thu, 15 Jul 1993 04:58:59 +0000 (04:58 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 15 Jul 1993 04:58:59 +0000 (04:58 +0000)
symbol `undefined', don't try to take that symbol's cdr before
passing it to menu_bar_item; pass the `undefined' binding itself,
so menu_bar_item can remove bindings for the same key from result.

src/keyboard.c

index 21bdb6c16bde6038f4600ce72c6279166103ea58..c840979c88f36788761a652f293b900004b82c25 100644 (file)
@@ -3235,7 +3235,7 @@ menu_bar_one_keymap (keymap, result)
            }
          else if (EQ (binding, Qundefined))
            result = menu_bar_item (key, item_string,
-                                   Fcdr (binding), result);
+                                   binding, result);
        }
       else if (XTYPE (item) == Lisp_Vector)
        {
@@ -3256,7 +3256,7 @@ menu_bar_one_keymap (keymap, result)
                }
              else if (EQ (binding, Qundefined))
                result = menu_bar_item (key, item_string,
-                                       Fcdr (binding), result);
+                                       binding, result);
            }
        }
     }