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 07:31:55 -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 1222774364 11824 80.91.229.12 (30 Sep 2008 11:32:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 11:32:44 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 30 13:33:43 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 1KkdU3-0001fB-NG for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2008 13:33:40 +0200 Original-Received: from localhost ([127.0.0.1]:45733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkdT0-0002WI-Gy for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2008 07:32:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkdSr-0002SS-TP for emacs-devel@gnu.org; Tue, 30 Sep 2008 07:32:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkdSp-0002Nq-O7 for emacs-devel@gnu.org; Tue, 30 Sep 2008 07:32:24 -0400 Original-Received: from [199.232.76.173] (port=45340 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkdSo-0002LK-Ha for emacs-devel@gnu.org; Tue, 30 Sep 2008 07:32:22 -0400 Original-Received: from qmta04.emeryville.ca.mail.comcast.net ([76.96.30.40]:59249) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkdSR-0004un-1t for emacs-devel@gnu.org; Tue, 30 Sep 2008 07:32:21 -0400 Original-Received: from OMTA07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by QMTA04.emeryville.ca.mail.comcast.net with comcast id Lyy71a0041GXsucA4zXxBl; Tue, 30 Sep 2008 11:31:57 +0000 Original-Received: from LM000850872 ([98.233.81.189]) by OMTA07.emeryville.ca.mail.comcast.net with comcast id LzXu1a00A454uzm8TzXvJK; Tue, 30 Sep 2008 11:31:56 +0000 X-Authority-Analysis: v=1.0 c=1 a=cV-2FYpJRJocvmxdWzEA:9 a=wFyD0Y5oJIetNDfLFjDWUQ0kt5kA:4 a=ii61gXl28gQA:10 a=tqucuuI3bnEA:10 In-Reply-To: (Glenn Morris's message of "Tue\, 30 Sep 2008 02\:53\:20 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:104255 Archived-At: Glenn Morris writes: > Stephen Leake wrote: > >> 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 popup-menu does not use `position' for anything, it just passes it > to x-popup-menu. So I don't so how you can get an error from a bad > position element in popup-menu itself. 'position' is passed to x-popup-menu; it was x-popup-menu that was raising the error. The problem is that when the mouse is outside the window, 'position' would have nil in it for the actual position. Then x-popup-window would try to convert that to an integer. But since it's not failing with emacs -Q, I must have something that's redefining mouse-position and returning incorrect results, that x-popup-menu is then getting confused by. -- -- Stephe