From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: popup-menu with keyboard menu Date: Mon, 29 Sep 2008 15:52:39 -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 1222718121 29333 80.91.229.12 (29 Sep 2008 19:55:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2008 19:55:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 29 21:56:20 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 1KkOqj-0007X8-T1 for ged-emacs-devel@m.gmane.org; Mon, 29 Sep 2008 21:56:06 +0200 Original-Received: from localhost ([127.0.0.1]:50695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkOpf-0000SE-Rr for ged-emacs-devel@m.gmane.org; Mon, 29 Sep 2008 15:54:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkOpb-0000S8-Dr for emacs-devel@gnu.org; Mon, 29 Sep 2008 15:54:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkOpZ-0000Rd-JM for emacs-devel@gnu.org; Mon, 29 Sep 2008 15:54:54 -0400 Original-Received: from [199.232.76.173] (port=39246 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkOpZ-0000RZ-Eu for emacs-devel@gnu.org; Mon, 29 Sep 2008 15:54:53 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:45649) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkOpY-0003jz-Ns; Mon, 29 Sep 2008 15:54:52 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KkOnP-0007F0-N0; Mon, 29 Sep 2008 15:52:39 -0400 X-Spook: illuminati cypherpunk Soviet LABLINK Serbian Chobetsu X-Ran: 2(h.F,_N3t"z1oDaYmb)oySJ\eHZ`5LZ_HDKecn"O*IO0/Zb3\\kM]^gG&Wy9Ds.2^q3z\ X-Hue: red X-Attribution: GM In-Reply-To: (Stephen Leake's message of "Sat, 27 Sep 2008 15:48:36 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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:104230 Archived-At: 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? I couldn't reproduce it, and x-popup-menu has code to handle this case. Perhaps you are on Windows, since the version of x-popup-menu in w32menu.c seems to be missing the relevant part from the xmenu.c version. /* If a click happens in an external tool bar or a detached tool bar, x and y is NIL. In that case, use the current mouse position. This happens for the help button in the tool bar. Ideally popup-menu should pass NIL to this function, but it doesn't. */ if (NILP (x) && NILP (y)) get_current_pos_p = 1;