aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1992-09-18 07:29:36 +0000
committerRichard M. Stallman1992-09-18 07:29:36 +0000
commit1a8c3f100ab303d03ca03e582a16f7c1c8e5ed75 (patch)
tree4bde60c3f243e4c4768063bc7df0f455047ef0c4 /src
parent5852d145625e9e1dddc5cef32a2b97d9b7c0366d (diff)
downloademacs-1a8c3f100ab303d03ca03e582a16f7c1c8e5ed75.tar.gz
emacs-1a8c3f100ab303d03ca03e582a16f7c1c8e5ed75.zip
(get_keyelt): Skip menu help string after menu item name.
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c
index e5439c435a0..21176546bec 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -269,7 +269,7 @@ access_keymap (map, idx)
269 and INDEX is the object to look up in KEYMAP to yield the definition. 269 and INDEX is the object to look up in KEYMAP to yield the definition.
270 270
271 Also if OBJECT has a menu string as the first element, 271 Also if OBJECT has a menu string as the first element,
272 remove that. */ 272 remove that. Also remove a menu help string as second element. */
273 273
274Lisp_Object 274Lisp_Object
275get_keyelt (object) 275get_keyelt (object)
@@ -292,7 +292,14 @@ get_keyelt (object)
292 will be used by HierarKey menus. */ 292 will be used by HierarKey menus. */
293 else if (XTYPE (object) == Lisp_Cons 293 else if (XTYPE (object) == Lisp_Cons
294 && XTYPE (XCONS (object)->car) == Lisp_String) 294 && XTYPE (XCONS (object)->car) == Lisp_String)
295 object = XCONS (object)->cdr; 295 {
296 object = XCONS (object)->cdr;
297 /* Also remove a menu help string, if any,
298 following the menu item name. */
299 if (XTYPE (object) == Lisp_Cons
300 && XTYPE (XCONS (object)->car) == Lisp_String)
301 object = XCONS (object)->cdr;
302 }
296 303
297 else 304 else
298 /* Anything else is really the value. */ 305 /* Anything else is really the value. */