Jerry,
In psgml-edit.el, the function sgml-menu-ask ends like this:
(or
(sgml-popup-menu event
title
(mapcar (function (lambda (x) (cons x x)))
tab))
(message nil))))
If I change that to:
(or
(sgml-popup-menu event
title
(mapcar (function (lambda (x) (cons x x)))
tab))
(progn (y-or-n-p "null return from sgml-popup-event")(message
nil)))))
and try to insert an element using button3, everything works as before,
and the dialog box is not invoked. If I cancel the insert attempt by
moving the mouse off the popup menu before releasing the button, the
dialog pops up. (Incidentally, if I release the button over the title
of the popup, the dialog does not pop up until I take a subsequent mouse
or keyboard action.)
If I use the menu, and select `Insert Element', the popup menu and the
dialog box appear simultaneously. If I click on a menu item, I get
`please answer the dialog box'. I do, and the box clears with no echo
area message, for Yes or No, and with a Quit message for Cancel.
If, instead of clicking on a menu item, I cancel the selection by
clicking on the title, the dialog stays put, and on the next keyboard or
mouse action, I am beeped and reminded `please answer the dialog box'.
I give any answer, and get the expected echo, the dialog clears and
things are back to normal.
If, instead of a menu Item, I cancel by clicking off the popup, I get
beeped, see Quit in the echo area, and I am back in normal edit mode,
with the dialog still sitting on the screen. I can work all the way
around it, including using button3 to insert an element. When I
terminate the dialog, I am dropped into a recursive edit.
Peter
--
__ /__ Peter B. West pbwest(a)netscape.net
/
http://www.powerup.com.au/~pbwest
/ "Lord, to whom shall we go?"