Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1a8c3f10
Commit
1a8c3f10
authored
Sep 18, 1992
by
Richard M. Stallman
Browse files
(get_keyelt): Skip menu help string after menu item name.
parent
5852d145
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/keymap.c
src/keymap.c
+9
-2
No files found.
src/keymap.c
View file @
1a8c3f10
...
...
@@ -269,7 +269,7 @@ access_keymap (map, idx)
and INDEX is the object to look up in KEYMAP to yield the definition.
Also if OBJECT has a menu string as the first element,
remove that. */
remove that.
Also remove a menu help string as second element.
*/
Lisp_Object
get_keyelt
(
object
)
...
...
@@ -292,7 +292,14 @@ get_keyelt (object)
will be used by HierarKey menus. */
else
if
(
XTYPE
(
object
)
==
Lisp_Cons
&&
XTYPE
(
XCONS
(
object
)
->
car
)
==
Lisp_String
)
object = XCONS (object)->cdr;
{
object
=
XCONS
(
object
)
->
cdr
;
/* Also remove a menu help string, if any,
following the menu item name. */
if
(
XTYPE
(
object
)
==
Lisp_Cons
&&
XTYPE
(
XCONS
(
object
)
->
car
)
==
Lisp_String
)
object
=
XCONS
(
object
)
->
cdr
;
}
else
/* Anything else is really the value. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment