Benson, Byrel, and I have been working on some programs today that
add a top-level item on the XEmacs menu, and XEmacs was crashing
when we clicked on the new top-level menu item.
Benson and Byrel found a bug in add-menu-item that caused the crash.
whenever you put a nil value with a keyword in a menu, add-submenu would
corrupt the menu structure, so that the next time the menu was accessed,
it would crash (this is in Xwindows; crash was that XEmacs to just totally
closed and went away.
Attached is a patch for menubar.el
I'm sure there will be questions about what the function and the patch does,
direct them to Byrel and Benson Mitchell, as I didn't fully understand all
the details. There should be a comment on about every line in code that
complicated, if they want me to understand it (grin).
XEmacs-Beta mailing list