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: Fri, 26 Jun 2009 10:26:32 -0700 Message-ID: References: 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 1246037220 7081 80.91.229.12 (26 Jun 2009 17:27:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2009 17:27:00 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 26 19:26:54 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 1MKFCN-0006oN-N3 for ged-emacs-devel@m.gmane.org; Fri, 26 Jun 2009 19:26:52 +0200 Original-Received: from localhost ([127.0.0.1]:56584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKFCN-0005oy-41 for ged-emacs-devel@m.gmane.org; Fri, 26 Jun 2009 13:26:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MKFCH-0005oI-PZ for emacs-devel@gnu.org; Fri, 26 Jun 2009 13:26:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKFCD-0005go-9z for emacs-devel@gnu.org; Fri, 26 Jun 2009 13:26:45 -0400 Original-Received: from [199.232.76.173] (port=60780 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKFCC-0005gG-W0 for emacs-devel@gnu.org; Fri, 26 Jun 2009 13:26:41 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:51525) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MKFCC-0001jj-5X for emacs-devel@gnu.org; Fri, 26 Jun 2009 13:26:40 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n5QHQV1P021933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 26 Jun 2009 17:26:33 GMT Original-Received: from abhmt002.oracle.com (abhmt002.oracle.com [141.146.116.11]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n5QHQgG5015854 for ; Fri, 26 Jun 2009 17:26:42 GMT Original-Received: from dradamslap1 (/141.144.81.142) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 26 Jun 2009 10:26:33 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acn2gbgAk/nHOPDTRgelT4NkT/UhYQAAFkWw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt002.oracle.com [141.146.116.11] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4A4504CB.00F0: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:111748 Archived-At: > Subject line says it all. > > 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)'. > > Why? Is this a bug or a feature or just an inescapable implementation > limitation? > > This behavior doesn't seem right. Using the mouse wheel > (without pressing it to > realize a click) is not the same as clicking a mouse button. > > (I'm using Windows, so the `event-basic-type' for a wheel > rotation is `wheel-up' or `wheel-down'.) I might add that this can complicate user code. In a context where I know the mouse wheel has been used, if I want to test for a keyboard (only) modifier, I now need to do something like this: (when (intersection (event-modifiers evnt) '(shift control meta alt hyper super)) ...) instead of just (when (event-modifiers evnt) ...). That brings in cl.el (or equivalent code) for `intersection'. Not a biggee, if there's a good reason why `click' should be returned for a mouse-wheel event. So...why?