From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Canceling dialogues Date: Thu, 03 Aug 2006 23:16:26 +0100 Message-ID: References: <44CE4007.6020904@student.lu.se> <44CEF719.3050703@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154643539 19928 80.91.229.2 (3 Aug 2006 22:18:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 22:18:59 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 04 00:18:56 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 1G8lWe-0007eE-4p for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2006 00:18:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8lWd-0007um-EK for ged-emacs-devel@m.gmane.org; Thu, 03 Aug 2006 18:18:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8lWQ-0007uG-IC for emacs-devel@gnu.org; Thu, 03 Aug 2006 18:18:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8lWO-0007sd-2P for emacs-devel@gnu.org; Thu, 03 Aug 2006 18:18:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8lWN-0007sa-T6 for emacs-devel@gnu.org; Thu, 03 Aug 2006 18:18:27 -0400 Original-Received: from [194.106.33.237] (helo=outmail.freedom2surf.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G8lZn-00089Q-0v; Thu, 03 Aug 2006 18:21:59 -0400 Original-Received: from wanchan.jasonrumney.net (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail.freedom2surf.net (Postfix) with ESMTP id A5948911B0; Thu, 3 Aug 2006 23:18:25 +0100 (BST) Original-Received: from TONKOTSU-RAMEN (tonkotsu-ramen.jasonrumney.net [10.0.0.28]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 2D1EB3B; Thu, 3 Aug 2006 23:18:20 +0100 (BST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 03 Aug 2006 15:14:38 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) 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:58068 Archived-At: Richard Stallman writes: > I defined a command > > (defun foo () > (interactive) > (y-or-n-p "Foo? ") > (setq foo t)) > > and bound it to C-M-mouse-1 using global-set-key. > Then I did C-M-mouse-1, and it brought up the dialog box. > Then I clicked on the X to kill the dialog box. > Emacs displayed Quit, and the variable foo was still unbound. There were some changes in xmenu.c from Dec 2004 and May 2005 that were not also made in w32menu.c. I have added the code to Quit and this now works on w32 also, but there are many more changes that may be relevant (there are also many changes from that timeframe related to supporting GTK menus, so it is difficult to find which changes are relevant). If someone has time, it is worth going through the ChangeLog looking at changes that have been made in xmenu, xterm and xfns and seeing if equivalent changes have been made in mac and w32 files, if not, judging whether the change is relevant to other platforms. I probably last did this sometime around mid-2004, so you won't need to go further back than that.