From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#8116: 24.0.50; `minibuffer-message': ignore mouse-up event for `sit-for'? Date: Fri, 25 Feb 2011 08:50:15 -0800 Message-ID: <8EE02E84A03B4AE989E34EA52C6969CB@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298653810 29159 80.91.229.12 (25 Feb 2011 17:10:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Feb 2011 17:10:10 +0000 (UTC) To: 8116@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 25 18:10:05 2011 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.69) (envelope-from ) id 1Pt1B6-0004zb-3f for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Feb 2011 18:10:05 +0100 Original-Received: from localhost ([127.0.0.1]:36054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pt1B4-0008If-2i for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Feb 2011 12:10:02 -0500 Original-Received: from [140.186.70.92] (port=55204 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pt1Ab-0007px-Ge for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2011 12:09:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pt17w-0000fd-GN for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2011 12:06:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pt17w-0000fX-B1 for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2011 12:06:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pt0td-0006GK-QC; Fri, 25 Feb 2011 11:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Feb 2011 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8116 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.129865269824038 (code B ref -1); Fri, 25 Feb 2011 16:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Feb 2011 16:51:38 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pt0tG-0006Fe-ES for submit@debbugs.gnu.org; Fri, 25 Feb 2011 11:51:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pt0tE-0006FU-Se for submit@debbugs.gnu.org; Fri, 25 Feb 2011 11:51:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pt0t8-0006P0-6k for submit@debbugs.gnu.org; Fri, 25 Feb 2011 11:51:32 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:50561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pt0t8-0006Ov-4F for submit@debbugs.gnu.org; Fri, 25 Feb 2011 11:51:30 -0500 Original-Received: from [140.186.70.92] (port=37169 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pt0t0-0000Sp-Vc for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2011 11:51:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pt0sw-0006Ly-5C for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2011 11:51:22 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:23656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pt0sv-0006Lf-Te for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2011 11:51:18 -0500 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p1PGpEWY007631 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 25 Feb 2011 16:51:16 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p1P8cTHS017151 for ; Fri, 25 Feb 2011 16:51:12 GMT Original-Received: from abhmt004.oracle.com by acsmt353.oracle.com with ESMTP id 1087850251298652617; Fri, 25 Feb 2011 08:50:17 -0800 Original-Received: from dradamslap1 (/10.159.35.130) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 25 Feb 2011 08:50:16 -0800 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcvVDBOdg8IJI0tjSxajIZZhVVMHWQ== X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4D67DE01.01FE:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 25 Feb 2011 11:52:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org 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:44365 Archived-At: If you pop up a menu (e.g. using `x-popup-menu') and one of its items calls `minibuffer-message', the user will never see the message, presumably because the call to `sit-for' in `minibuffer-message' sees the mouse-up event (from choosing the menu item) as user input, canceling the `sit-for' timeout. Seems like we should be able to make this work somehow. Perhaps `sit-for' could accept an optional arg listing a set of events to ignore, and `minibuffer-message' could then call it with mouse-up in that list? But should _all_ uses of `minibuffer-message' ignore `mouse-up' events wrt the timeout? Dunno. Sounds doubtful. Still, this seems like something we should be able to handle, so that users can see a message associated with a menu item. Example use: A user chooses a menu item to cycle some variable/behavior (e.g. a sort order) to the next possible value, and the action ends with a message echoing what the new value is. Currently, the user can do this over and over without ever seeing what the new value is each time. In some contexts it might not be convenient for the user to stop the overall interaction just to interrogate the value. That is, use of the popup menu might be only one link in a chain of user interactions. One possibility might be to move the `sit-for' out of `minibuffer-message', making the calling code be responsible for it instead. That would be analogous to the way `message' is used. But I'm not sure how that would affect other things - perhaps it is important that `minibuffer-message' calls `sit-for' itself. Dunno. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-02-14 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include'