aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-02-07 01:03:39 +0000
committerRichard M. Stallman1994-02-07 01:03:39 +0000
commit047a8ea77d676f96d26d670528ce436aed98b3e1 (patch)
tree71c2e61b4c5bf936ca79cb47a09d9e67958cff63
parentd227775c812fc1b75e56829bae372ca48833d00e (diff)
downloademacs-047a8ea77d676f96d26d670528ce436aed98b3e1.tar.gz
emacs-047a8ea77d676f96d26d670528ce436aed98b3e1.zip
(menu_bar_item): Use internal_condition_case_1.
(menu_bar_item_1): New function.
-rw-r--r--src/keyboard.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index da4ca46b676..27894429596 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3586,6 +3586,15 @@ menu_bar_one_keymap (keymap, result)
3586 return result; 3586 return result;
3587} 3587}
3588 3588
3589/* This is used as the handler when calling internal_condition_case_1. */
3590
3591static Lisp_Object
3592menu_bar_item_1 (arg)
3593 Lisp_Object arg;
3594{
3595 return Qnil;
3596}
3597
3589static Lisp_Object 3598static Lisp_Object
3590menu_bar_item (key, item_string, def, result) 3599menu_bar_item (key, item_string, def, result)
3591 Lisp_Object key, item_string, def, result; 3600 Lisp_Object key, item_string, def, result;
@@ -3610,7 +3619,10 @@ menu_bar_item (key, item_string, def, result)
3610 Otherwise, enable if value is not nil. */ 3619 Otherwise, enable if value is not nil. */
3611 tem = Fget (def, Qmenu_enable); 3620 tem = Fget (def, Qmenu_enable);
3612 if (!NILP (tem)) 3621 if (!NILP (tem))
3613 enabled = Feval (tem); 3622 /* (condition-case nil (eval tem)
3623 (error nil)) */
3624 enabled = internal_condition_case_1 (Feval, tem, Qerror,
3625 menu_bar_item_1);
3614 } 3626 }
3615 3627
3616 /* Add an entry for this key and string 3628 /* Add an entry for this key and string