From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Why the `click' modifier for a mouse-wheel event? Date: Sun, 5 Jul 2009 23:40:34 -0700 Message-ID: References: <87d48q94gf.fsf@stupidchicken.com> <4A516F3E.6060603@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246862452 13632 80.91.229.12 (6 Jul 2009 06:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jul 2009 06:40:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Jason Rumney'" , "'Chong Yidong'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 06 08:40:44 2009 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 1MNhsZ-0000JB-Ew for ged-emacs-devel@m.gmane.org; Mon, 06 Jul 2009 08:40:44 +0200 Original-Received: from localhost ([127.0.0.1]:48938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNhsY-0001Cl-MJ for ged-emacs-devel@m.gmane.org; Mon, 06 Jul 2009 02:40:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNhsT-0001Cg-5c for emacs-devel@gnu.org; Mon, 06 Jul 2009 02:40:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNhsO-0001Bx-J2 for emacs-devel@gnu.org; Mon, 06 Jul 2009 02:40:36 -0400 Original-Received: from [199.232.76.173] (port=58442 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNhsO-0001Br-Fn for emacs-devel@gnu.org; Mon, 06 Jul 2009 02:40:32 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:33284 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNhsL-0006BJ-1C; Mon, 06 Jul 2009 02:40:29 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n666e40Y029220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Jul 2009 06:40:06 GMT Original-Received: from abhmt006.oracle.com (abhmt006.oracle.com [141.146.116.15]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n666g8C2010996; Mon, 6 Jul 2009 06:42:09 GMT Original-Received: from dradamslap1 (/24.23.164.86) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 05 Jul 2009 23:40:23 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4A516F3E.6060603@gnu.org> Thread-Index: Acn96hHTAqw8zuWYQCKDFNJf54KQfQAFY/CQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt006.oracle.com [141.146.116.15] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4A519C57.018B:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:112066 Archived-At: > >> In Emacs 22 (and 21, 20...), using the mouse wheel did not > >> add any modifiers to the event that was read. In Emacs 23, > >> `event-modifiers' for a `mouse-wheel-down-event' or > >> `mouse-wheel-up-event' returns `(click)'. > > > > I think this change was made to make Windows behave like the other > > ports. IIRC, this was in response to a bug report by Lennart (?), > > but I can't find it in the tracker right now. > > It was bug#687, about wheel events triggering mouse-avoidance, since > they were not considered as mouse events. Thanks for tracking that other bug down, Jason. But I don't understand why that fix to bug #687 is TRT. It seems to me very wrong that a wheel event that does not in any way involve the user pressing the wheel as a middle mouse button should be treated as a mouse-button `click' event. I don't understand everything about bug #687 (and it sounds, from reading it, like others might not either), but this fix seems off-base. And I was obviously wrong in my own last post in that bug thread, when I said that I thought I would not need to change my own code because of your change. As I mentioned earlier, that change complicates user code - see the examples I gave. The test for a keyboard-only modifier (shift, control, meta, alt, hyper, or super) has become downright silly - but perhaps there is a better way to do it than what I posted? [OT - BTW, do others find the Emacs bug-maintenance site usable? I found no field for entering a bug number (e.g. 687), to show a specific bug, so I searched the page for it. Not finding it, I tried to show the Archived bugs (there is a field for that, at least). More than 50 minutes later (!), with still no page displayed, I gave up, just clicked some other bug link, and changed the bug number in the resulting URL. I can't believe this is the best bug-maintenance tool we could find, but so be it.]