From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Canceling dialogues Date: Mon, 31 Jul 2006 22:16:50 +0200 Message-ID: <44CE6532.2010403@student.lu.se> References: <44CE4007.6020904@student.lu.se> <44CE5BB3.7000008@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154377071 17799 80.91.229.2 (31 Jul 2006 20:17:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jul 2006 20:17:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 31 22:17:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G7eCL-0007he-1h for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 22:17:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7eCK-0000kf-EL for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 16:17:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7eC9-0000kG-HJ for emacs-devel@gnu.org; Mon, 31 Jul 2006 16:16:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7eC7-0000iu-1u for emacs-devel@gnu.org; Mon, 31 Jul 2006 16:16:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7eC6-0000in-Tx for emacs-devel@gnu.org; Mon, 31 Jul 2006 16:16:54 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7eEo-0005w8-UX; Mon, 31 Jul 2006 16:19:43 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.075) id 44A135F1006A3999; Mon, 31 Jul 2006 22:16:51 +0200 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Original-To: Eli Zaretskii In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57873 Archived-At: 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).