From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: popup-menu with keyboard menu Date: Tue, 30 Sep 2008 02:49:08 -0400 Message-ID: References: <86wsgya51q.fsf@blue.stonehenge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222757408 24765 80.91.229.12 (30 Sep 2008 06:50:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 06:50:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 30 08:51:06 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KkZ4b-0004Ry-Bl for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2008 08:51:06 +0200 Original-Received: from localhost ([127.0.0.1]:47836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkZ3N-0003Oi-OG for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2008 02:49:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkZ32-0003HQ-OB for emacs-devel@gnu.org; Tue, 30 Sep 2008 02:49:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkZ2y-0003FS-Uv for emacs-devel@gnu.org; Tue, 30 Sep 2008 02:49:27 -0400 Original-Received: from [199.232.76.173] (port=51577 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkZ2y-0003FL-Mb for emacs-devel@gnu.org; Tue, 30 Sep 2008 02:49:24 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:52311) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KkZ2w-0006Dz-MA for emacs-devel@gnu.org; Tue, 30 Sep 2008 02:49:24 -0400 Original-Received: from qmta03.emeryville.ca.mail.comcast.net ([76.96.30.32]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkZ2m-0000fs-Hs for emacs-devel@gnu.org; Tue, 30 Sep 2008 02:49:12 -0400 Original-Received: from OMTA14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id Luoz1a0011HpZEsA3up9P1; Tue, 30 Sep 2008 06:49:09 +0000 Original-Received: from LM000850872 ([98.233.81.189]) by OMTA14.emeryville.ca.mail.comcast.net with comcast id Lup71a002454uzm8aup8mJ; Tue, 30 Sep 2008 06:49:09 +0000 X-Authority-Analysis: v=1.0 c=1 a=A7msL0k8dJKMqve5Cd4A:9 a=yEdQ4k0lBx4gwCNazB12aIOP-3gA:4 a=ii61gXl28gQA:10 a=tqucuuI3bnEA:10 In-Reply-To: (Glenn Morris's message of "Mon\, 29 Sep 2008 15\:52\:39 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) X-detected-kernel: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:104250 Archived-At: Glenn Morris writes: > Stephen Leake wrote: > >> I'm calling popup-menu with a keyboard menu, rather than from a mouse >> action. >> >> It's failing with "Wrong type argument: integerp, nil" if the mouse is >> outside the Emacs frame (which it normally is, for me). > > Can you give a recipe starting from emacs -Q showing how to get this > error? Interestingly, I can't. > I couldn't reproduce it, and x-popup-menu has code to handle this > case. The bug was in popup-menu, not x-popup-menu; the fix was to rely on x-popup-menu to do the right thing. But it turns out popup-menu doesn't do what I want anyway; it executes the menu keymap as a GUI menu, not a keyboard menu. Which makes sense, given the name :). How do I invoke a keyboard menu from lisp? -- -- Stephe