aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-07-21 02:05:20 +0000
committerRichard M. Stallman1995-07-21 02:05:20 +0000
commit0314aacb412ab1015f063d31e4b43ef7c6935c9e (patch)
treefcee4e9d0ff8211d2acc9dd6fc606090d4d24241 /src
parent3a0c47555c3aa253cceca709812fccf48a6ed77c (diff)
downloademacs-0314aacb412ab1015f063d31e4b43ef7c6935c9e.tar.gz
emacs-0314aacb412ab1015f063d31e4b43ef7c6935c9e.zip
(syms_of_xmenu): Set up Qdebug_on_next_call.
(set_frame_menubar): Bind it to nil.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 54b1d50e096..6ed239d4e86 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -82,6 +82,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
82#define FALSE 0 82#define FALSE 0
83#endif /* no TRUE */ 83#endif /* no TRUE */
84 84
85Lisp_Object Qdebug_on_next_call;
86
85extern Lisp_Object Qmenu_enable; 87extern Lisp_Object Qmenu_enable;
86extern Lisp_Object Qmenu_bar; 88extern Lisp_Object Qmenu_bar;
87extern Lisp_Object Qmouse_click, Qevent_kind; 89extern Lisp_Object Qmouse_click, Qevent_kind;
@@ -1526,6 +1528,9 @@ set_frame_menubar (f, first_time)
1526 count = inhibit_garbage_collection (); 1528 count = inhibit_garbage_collection ();
1527 1529
1528 specbind (Qinhibit_quit, Qt); 1530 specbind (Qinhibit_quit, Qt);
1531 /* Don't let the debugger step into this code
1532 because it is not reentrant. */
1533 specbind (Qdebug_on_next_call, Qnil);
1529 1534
1530 id = frame_vector_add_frame (f); 1535 id = frame_vector_add_frame (f);
1531 1536
@@ -2444,6 +2449,9 @@ syms_of_xmenu ()
2444 staticpro (&menu_items); 2449 staticpro (&menu_items);
2445 menu_items = Qnil; 2450 menu_items = Qnil;
2446 2451
2452 Qdebug_on_next_call = intern ("debug-on-next-call");
2453 staticpro (&Qdebug_on_next_call);
2454
2447#ifdef USE_X_TOOLKIT 2455#ifdef USE_X_TOOLKIT
2448 widget_id_tick = (1<<16); 2456 widget_id_tick = (1<<16);
2449#endif 2457#endif