From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Canceling dialogues Date: Mon, 31 Jul 2006 19:59:54 -0400 Message-ID: References: <44CE4007.6020904@student.lu.se> <44CE5BB3.7000008@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1154390453 23905 80.91.229.2 (1 Aug 2006 00:00:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2006 00:00:53 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 01 02:00:49 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 1G7hgi-0000sG-R5 for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 02:00:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7hgi-0000qL-E2 for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 20:00:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7hfw-0000Ru-6Q for emacs-devel@gnu.org; Mon, 31 Jul 2006 19:59:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7hfv-0000RC-BB for emacs-devel@gnu.org; Mon, 31 Jul 2006 19:59:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7hfv-0000R7-6Y for emacs-devel@gnu.org; Mon, 31 Jul 2006 19:59:55 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7hig-0000bJ-Or for emacs-devel@gnu.org; Mon, 31 Jul 2006 20:02:46 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1G7hfu-0003Ki-5m; Mon, 31 Jul 2006 19:59:54 -0400 Original-To: Eli Zaretskii In-reply-to: (message from Eli Zaretskii on Mon, 31 Jul 2006 22:57:32 +0300) 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:57892 Archived-At: 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. It is ok to add Cancel to every dialog box. In my setup, which is GNU/Linux with GNOME, every dialog window has a box with an x to cancel it, and that will have the effect of causing a quit. This is useful. To add a Cancel option on systems which don't present the kill-window box would be useful too. If it is inconvenient to determine which systems have the kill-window box, adding a Cancel option in every dialog would also be ok. On systems where the window does have a kill-this-window box, the Cancel option will be redundant, but not harmful.