Mercurial > emacs
comparison src/keyboard.c @ 112079:492307508262
Fix bug #7662 with aligning key bindings equivalent to menu items.
keyboard.c (parse_menu_item): Prepend " " to the key sequence
equivalent of a menu item when the key sequence is given by the
`:keys' attribute.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 25 Dec 2010 19:19:57 +0200 |
parents | 898651f66853 |
children | 40af77a50adc 376148b31b5e |
comparison
equal
deleted
inserted
replaced
112078:2285c33f3bb0 | 112079:492307508262 |
---|---|
8191 Lisp_Object keyeq = AREF (item_properties, ITEM_PROPERTY_KEYEQ); | 8191 Lisp_Object keyeq = AREF (item_properties, ITEM_PROPERTY_KEYEQ); |
8192 | 8192 |
8193 /* The previous code preferred :key-sequence to :keys, so we | 8193 /* The previous code preferred :key-sequence to :keys, so we |
8194 preserve this behavior. */ | 8194 preserve this behavior. */ |
8195 if (STRINGP (keyeq) && !CONSP (keyhint)) | 8195 if (STRINGP (keyeq) && !CONSP (keyhint)) |
8196 keyeq = Fsubstitute_command_keys (keyeq); | 8196 keyeq = concat2 (build_string (" "), Fsubstitute_command_keys (keyeq)); |
8197 else | 8197 else |
8198 { | 8198 { |
8199 Lisp_Object prefix = keyeq; | 8199 Lisp_Object prefix = keyeq; |
8200 Lisp_Object keys = Qnil; | 8200 Lisp_Object keys = Qnil; |
8201 | 8201 |