emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Canceling dialogues


From: Lennart Borgman
Subject: Re: Canceling dialogues
Date: Mon, 31 Jul 2006 22:16:50 +0200
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

Eli Zaretskii wrote:
When Emacs wants to pop the YES/NO dialog, it calls the function
x-popup-dialog (Fx_popup_dialog), which in the Windows port currently
creates a menu instead of a dialog and pops that menu.  This function
(x-popup-dialog) is a general-purpose function, it doesn't know, nor
care, what it gets as the contents of the dialog.  It isn't called
only for the YES/NO type of dialog, you can have other dialogs with
arbitrary long lists of alternatives.

So, unless we somehow program the function to discover that it is
called for YES/NO dialog, we cannot blithely add a CANCEL button to
it.
Why not add a cancel alternative for the other calls too?

If you meant to add code to x-popup-dialog that would recognize this
special case, I think fixing the generic dialog code is a better
investment of our resources and energy, and the result is going to be
much cleaner.
Yes, that would be better. But could not my suggestion be implemented with much less effort?
In addition, there's the question what to do for CANCEL, as someone
else pointed out.
I tried to answer that in another message. It should do what C-g does for the command line alternative (minus some things that does not seem appropriate as David pointed out).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]