Tudor Hulubei <tudor(a)cs.unh.edu> writes:
Click on Options, then on Crash. You will get an item saying
"No
menu". Try going to that item with the keyboard (type right-arrow)
instead of the mouse. XEmacs will crash.
For these "No menu" entries the accel field didn't get initialised
properly.
1999-04-23 Gunnar Evermann <ge204(a)eng.cam.ac.uk>
* menubar-x.c (pre_activate_callback): set accelerator field in
"No menu" entries to nil. Avoid crash in
command_builder_operate_menu_accelerator
Index: src/menubar-x.c
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/menubar-x.c,v
retrieving revision 1.18.2.4
diff -u -r1.18.2.4 menubar-x.c
--- menubar-x.c 1998/12/18 23:24:01 1.18.2.4
+++ menubar-x.c 1999/04/23 08:33:14
@@ -465,10 +465,12 @@
wv = xmalloc_widget_value ();
wv->type = CASCADE_TYPE;
wv->next = NULL;
+ wv->accel = LISP_TO_VOID (Qnil);
wv->contents = xmalloc_widget_value ();
wv->contents->type = TEXT_TYPE;
wv->contents->name = (char *) "No menu";
wv->contents->next = NULL;
+ wv->contents->accel = LISP_TO_VOID (Qnil);
}
assert (wv && wv->type == CASCADE_TYPE && wv->contents);
replace_widget_value_tree (hack_wv, wv->contents);
--
Gunnar Evermann
Speech, Vision & Robotics Group
Engineering Department
Cambridge University