GNU bug report logs - #8116
24.0.50; `minibuffer-message': ignore mouse-up event for `sit-for'?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Drew Adams" <drew.adams@HIDDEN>; dated Fri, 25 Feb 2011 16:52:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 8116 <at> debbugs.gnu.org:


Received: (at 8116) by debbugs.gnu.org; 25 Feb 2011 18:28:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 25 13:28:04 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pt2Oa-00008E-Fp
	for submit <at> debbugs.gnu.org; Fri, 25 Feb 2011 13:28:04 -0500
Received: from rcsinet10.oracle.com ([148.87.113.121])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1Pt2OY-00007l-AN
	for 8116 <at> debbugs.gnu.org; Fri, 25 Feb 2011 13:28:02 -0500
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
	p1PIRtFI022847
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 25 Feb 2011 18:27:56 GMT
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
	p1PH7DWO032668; Fri, 25 Feb 2011 18:27:54 GMT
Received: from abhmt001.oracle.com by acsmt354.oracle.com
	with ESMTP id 1038689921298658469; Fri, 25 Feb 2011 10:27:49 -0800
Received: from dradamslap1 (/10.159.35.130)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 25 Feb 2011 10:27:49 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: "'Stefan Monnier'" <monnier@HIDDEN>
References: <8EE02E84A03B4AE989E34EA52C6969CB@HIDDEN>
	<jwvpqqg7zxs.fsf-monnier+emacs@HIDDEN>
Subject: RE: bug#8116: 24.0.50;
	`minibuffer-message': ignore mouse-up event for `sit-for'?
Date: Fri, 25 Feb 2011 10:27:50 -0800
Message-ID: <17A18A9B90F54D2CBE57C118D7C4C88B@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <jwvpqqg7zxs.fsf-monnier+emacs@HIDDEN>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994
Thread-Index: AcvVFrHZoi4FR3aSQYq/UDBgdy0slAAApdew
X-Source-IP: acsmt355.oracle.com [141.146.40.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090203.4D67F4AB.0038:SCFMA4539814,ss=1,fgs=0
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 8116
Cc: 8116 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

> > Seems like we should be able to make this work somehow.
> 
> Agreed.  I think the way to attack this is elsewhere, tho: 
> the mouse-up should be eaten up by the menu code.

Yes, that sounds good.

Dunno whether that would ever be an inconvenience - I can't think of a negative
use case.  Seems like every menu selection action would always involve mouse
down + up.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8116; Package emacs. Full text available.

Message received at 8116 <at> debbugs.gnu.org:


Received: (at 8116) by debbugs.gnu.org; 25 Feb 2011 18:06:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 25 13:06:20 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pt23Y-00085G-2F
	for submit <at> debbugs.gnu.org; Fri, 25 Feb 2011 13:06:20 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.183]
	helo=ironport2-out.pppoe.ca)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1Pt23W-000854-7h
	for 8116 <at> debbugs.gnu.org; Fri, 25 Feb 2011 13:06:18 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAFd+Z01MCo5f/2dsb2JhbACmOnW9FIVgBIUQj14
X-IronPort-AV: E=Sophos;i="4.62,226,1297054800"; d="scan'208";a="93561608"
Received: from 76-10-142-95.dsl.teksavvy.com (HELO ceviche.home)
	([76.10.142.95])
	by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA;
	25 Feb 2011 13:06:12 -0500
Received: by ceviche.home (Postfix, from userid 20848)
	id 3E48A660D6; Fri, 25 Feb 2011 13:06:12 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: "Drew Adams" <drew.adams@HIDDEN>
Subject: Re: bug#8116: 24.0.50;
	`minibuffer-message': ignore mouse-up event for `sit-for'?
Message-ID: <jwvpqqg7zxs.fsf-monnier+emacs@HIDDEN>
References: <8EE02E84A03B4AE989E34EA52C6969CB@HIDDEN>
Date: Fri, 25 Feb 2011 13:06:12 -0500
In-Reply-To: <8EE02E84A03B4AE989E34EA52C6969CB@HIDDEN> (Drew Adams's
	message of "Fri, 25 Feb 2011 08:50:15 -0800")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.1 (--)
X-Debbugs-Envelope-To: 8116
Cc: 8116 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.1 (--)

> 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

Agreed.  I think the way to attack this is elsewhere, tho: the mouse-up
should be eaten up by the menu code.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8116; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Feb 2011 16:51:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 25 11:51:38 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pt0tG-0006Fe-ES
	for submit <at> debbugs.gnu.org; Fri, 25 Feb 2011 11:51:38 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1Pt0tE-0006FU-Se
	for submit <at> debbugs.gnu.org; Fri, 25 Feb 2011 11:51:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1Pt0t8-0006P0-6k
	for submit <at> debbugs.gnu.org; Fri, 25 Feb 2011 11:51:32 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:50561)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1Pt0t8-0006Ov-4F
	for submit <at> debbugs.gnu.org; Fri, 25 Feb 2011 11:51:30 -0500
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@HIDDEN; Fri, 25 Feb 2011 11:51:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1Pt0sw-0006Ly-5C
	for bug-gnu-emacs@HIDDEN; Fri, 25 Feb 2011 11:51:22 -0500
Received: from rcsinet10.oracle.com ([148.87.113.121]:23656)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1Pt0sv-0006Lf-Te
	for bug-gnu-emacs@HIDDEN; Fri, 25 Feb 2011 11:51:18 -0500
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 <bug-gnu-emacs@HIDDEN>; Fri, 25 Feb 2011 16:51:16 GMT
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 <bug-gnu-emacs@HIDDEN>; Fri, 25 Feb 2011 16:51:12 GMT
Received: from abhmt004.oracle.com by acsmt353.oracle.com
	with ESMTP id 1087850251298652617; Fri, 25 Feb 2011 08:50:17 -0800
Received: from dradamslap1 (/10.159.35.130)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 25 Feb 2011 08:50:16 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 24.0.50; `minibuffer-message': ignore mouse-up event for `sit-for'?
Date: Fri, 25 Feb 2011 08:50:15 -0800
Message-ID: <8EE02E84A03B4AE989E34EA52C6969CB@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
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-Received-From: 199.232.76.165
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

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'
 





Acknowledgement sent to "Drew Adams" <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8116; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.