APPROVE
Your logic about returning NULL has sold me. Your original patch is
the right way to go as far as it goes, and the new comment addresses
the documentation issue. Ship it!
Steve
Jerry James writes:
I believe that returning NULL is all it can do if it is handed a
broken menu specification. Ben's error wrapping stuff is right in the
middle of the call stack, so probably this code used to (unsafely)
throw Lisp errors right past compute_menubar_data, so the assert was
correct. With the current code structure, though, we need to keep
unraveling the stack upwards until we reach a point where the delayed
error can be rethrown and handled properly (by displaying it in
*Warnings*).
I think. At least it seems to work that way when handed the broken
ESS menu specification.
Make sense.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta