From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#447: marked as done (last-nonmenu-event and sub-menus) Date: Mon, 12 Jan 2009 10:05:06 +0000 Message-ID: References: <496B1454.4020409@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1231754706-4795-0" X-Trace: ger.gmane.org 1231755850 31641 80.91.229.12 (12 Jan 2009 10:24:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2009 10:24:10 +0000 (UTC) To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 12 11:25:21 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LMJyw-0004s6-Vi for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jan 2009 11:25:19 +0100 Original-Received: from localhost ([127.0.0.1]:58893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMJxd-0001oh-LP for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jan 2009 05:23:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMJxF-0001fM-5g for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 05:23:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMJxC-0001dO-UO for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 05:23:31 -0500 Original-Received: from [199.232.76.173] (port=48503 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMJxC-0001dD-KQ for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 05:23:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60054) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LMJxB-0000n8-TG for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 05:23:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0CANPYd009512; Mon, 12 Jan 2009 02:23:26 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0CA56k8004861; Mon, 12 Jan 2009 02:05:06 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 447 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24018 Archived-At: This is a multi-part message in MIME format... ------------=_1231754706-4795-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Mon, 12 Jan 2009 10:58:44 +0100 with message-id <496B1454.4020409@gmx.at> and subject line Re: last-nonmenu-event and sub-menus has caused the Emacs bug report #447, regarding last-nonmenu-event and sub-menus to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 447: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D447 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1231754706-4795-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.3 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Jun 2008 23:09:16 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5IN9985015508 for ; Wed, 18 Jun 2008 16:09:10 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K96m4-0003MC-Hu for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 19:09:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K96m3-0003Lr-FG for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 19:09:07 -0400 Received: from [199.232.76.173] (port=34500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K96m3-0003Ll-CB for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 19:09:07 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:60504) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K96m3-0004Q4-15 for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 19:09:07 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1K96ju-0004ga-CO; Wed, 18 Jun 2008 19:06:54 -0400 From: Glenn Morris To: bug-gnu-emacs@gnu.org Subject: last-nonmenu-event and sub-menus X-Spook: Iran cypherpunk Perl-RSA Bosnia national information X-Ran: Fm6=l8_J@wHKZMMcwa+Jo&<.A`CBI9ghNnIQ{i'u}2b?D#Tl6[uxc-[3XzxHrI6Jr,4\ga X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 18 Jun 2008 19:06:54 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) last-nonmenu-event returns a bad value when submenus are involved. This applies to 22.2 and the current CVS. As an example: emacs -Q ;; Evaluate this code: (defun bar () (interactive) (message "%s :: %s" last-nonmenu-event (posn-window (event-start last-nonmenu-event))) (sit-for 5)) (global-set-key [down-mouse-2] '(menu-item "foo" (keymap "foo" (bar menu-item "bar" bar) (submenu menu-item "submenu" (keymap "submenu" (bar menu-item "bar" bar)))))) C-x 2 Put "scratch" in one window, "messages" in the other. Select "messages" window. Move mouse over "scratch", but do not select it. Press mouse-2, and select the "bar" menu-item. When called from the top-level menu, `bar' correctly returns: (down-mouse-2 (# 534 (251 . 101) 2649593899 nil 534 (27 . 6) nil (8 . 11) (9 . 15))) :: # When called from the submenu, `bar' returns a bad result: bar :: # The window is wrong, etc. ------------=_1231754706-4795-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 447-done) by emacsbugs.donarmstrong.com; 12 Jan 2009 09:59:43 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n0C9xcO3002642 for <447-done@emacsbugs.donarmstrong.com>; Mon, 12 Jan 2009 01:59:40 -0800 Received: (qmail invoked by alias); 12 Jan 2009 09:59:32 -0000 Received: from 62-47-34-88.adsl.highway.telekom.at (EHLO [62.47.34.88]) [62.47.34.88] by mail.gmx.net (mp006) with SMTP; 12 Jan 2009 10:59:32 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18+mwpPM5k+NzMTfGvFeEjBFKm3UbVgBxjEO9bHi3 kwUENVSs7Eh8mJ Message-ID: <496B1454.4020409@gmx.at> Date: Mon, 12 Jan 2009 10:58:44 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 447-done@emacsbugs.donarmstrong.com CC: Glenn Morris Subject: Re: last-nonmenu-event and sub-menus References: <4960B4AE.9070706@gmx.at> <0mocygdz9q.fsf@fencepost.gnu.org> In-Reply-To: <0mocygdz9q.fsf@fencepost.gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.76 Fixed as * keyboard.c (read_char): Fix case where last_nonmenu_event returned a bad value with submenus. (Bug#447) martin ------------=_1231754706-4795-0--