changeset 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 2285c33f3bb0
children f1e03f250c47
files src/ChangeLog src/keyboard.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Dec 25 13:50:34 2010 +0200
+++ b/src/ChangeLog	Sat Dec 25 19:19:57 2010 +0200
@@ -1,5 +1,9 @@
 2010-12-25  Eli Zaretskii  <eliz@gnu.org>
 
+	* 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.  (Bug#7662)
+
 	* xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
 	the basic faces are supported.
 
--- a/src/keyboard.c	Sat Dec 25 13:50:34 2010 +0200
+++ b/src/keyboard.c	Sat Dec 25 19:19:57 2010 +0200
@@ -8193,7 +8193,7 @@
     /* The previous code preferred :key-sequence to :keys, so we
        preserve this behavior.  */
     if (STRINGP (keyeq) && !CONSP (keyhint))
-      keyeq = Fsubstitute_command_keys (keyeq);
+      keyeq = concat2 (build_string ("  "), Fsubstitute_command_keys (keyeq));
     else
       {
 	Lisp_Object prefix = keyeq;