From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: lispref/frames.texi and xmenu.c Date: Sun, 1 May 2005 16:04:39 -0500 (CDT) Message-ID: <200505012104.j41L4d124463@raven.dms.auburn.edu> References: <200505011335.j41DZK123269@raven.dms.auburn.edu> <42751558.4020007@swipnet.se> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1114981339 11031 80.91.229.2 (1 May 2005 21:02:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 May 2005 21:02:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 01 23:02:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DSLZk-0004W7-Qj for ged-emacs-devel@m.gmane.org; Sun, 01 May 2005 23:02:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSLgW-00061s-By for ged-emacs-devel@m.gmane.org; Sun, 01 May 2005 17:09:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSLex-0005L5-IU for emacs-devel@gnu.org; Sun, 01 May 2005 17:07:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSLeu-0005K4-EB for emacs-devel@gnu.org; Sun, 01 May 2005 17:07:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSLeu-0005JB-7s for emacs-devel@gnu.org; Sun, 01 May 2005 17:07:24 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DSLga-0007Ya-Fg for emacs-devel@gnu.org; Sun, 01 May 2005 17:09:08 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j41L4kog024922; Sun, 1 May 2005 16:04:46 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j41L4d124463; Sun, 1 May 2005 16:04:39 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: jan.h.d@swipnet.se In-reply-to: <42751558.4020007@swipnet.se> (jan.h.d@swipnet.se) 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:36563 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36563 Jan D. wrote: Quit. But it does that by checking if the menu was invoked with the mouse. If it was invoked by the mouse, we return nil, otherwise we quit. I was not worrying about menus invoked with the mouse. It is OK for those to return nil. So if a menu is popped up programatically by x-popup-menu, it will also quit even if it is not popped up as a dialog. In my tests (see the precise tests cases I sent to Eli), x-popup-menu returned nil instead of quitting. But since Richard's changes, it quits. I do not believe that passing `t' for POSITION counts as "invoked with the mouse", even though the menu pops up at the mouse position. But anyway, replacing `t' with (list '(0 0) (selected-window)) still used to return nil (before Richards changes). Sincerely, Luc.