From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: Re: mouse wheel support in Emacs 21.3.50 Date: Fri, 24 Sep 2004 17:25:09 GMT Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096046726 13214 80.91.229.6 (24 Sep 2004 17:25:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2004 17:25:26 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 24 19:25:11 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAtol-0000bB-00 for ; Fri, 24 Sep 2004 19:25:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAtuq-0000Ve-Q0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Sep 2004 13:31:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAtuo-0000VU-H4 for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2004 13:31:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAtuk-0000TA-Pf for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2004 13:31:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAtuk-0000T7-HC for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2004 13:31:22 -0400 Original-Received: from [132.239.1.55] (helo=mailbox3.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CAtoJ-0004cb-Pg for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2004 13:24:46 -0400 Received-SPF: none (mailbox3.ucsd.edu: domain of news@charlie.risq.qc.ca does not designate permitted sender hosts) Original-Received: from peppermint.risq.qc.ca (peppermint.risq.qc.ca [192.26.210.2]) by mailbox3.ucsd.edu (8.13.1/8.13.1) with ESMTP id i8OHOX3U090411 for ; Fri, 24 Sep 2004 10:24:33 -0700 (PDT) Original-Received: from charlie.risq.qc.ca (unknown [192.26.210.24]) by peppermint.risq.qc.ca (Postfix) with ESMTP id 874E4BBE for ; Fri, 24 Sep 2004 13:24:30 -0400 (EDT) Original-Received: from charlie.risq.qc.ca (localhost [127.0.0.1]) by charlie.risq.qc.ca (8.12.10+Sun/8.12.9) with ESMTP id i8OHP9Jh009931 for ; Fri, 24 Sep 2004 13:25:09 -0400 (EDT) Original-Received: by charlie.risq.qc.ca (8.12.10+Sun/8.12.9/Submit) id i8OHP9tW009930; Fri, 24 Sep 2004 13:25:09 -0400 (EDT) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.bug User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:5EilAHasE9oa3m7WMg4vgs86SrU= Original-Lines: 40 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1096046709 132.204.24.84 (Fri, 24 Sep 2004 13:25:09 EDT) Original-NNTP-Posting-Date: Fri, 24 Sep 2004 13:25:09 EDT X-Spamscanner: mailbox3.ucsd.edu (v1.5 Aug 25 2004 09:28:35, 0.0/5.0 3.0.0-rc1) X-MailScanner: PASSED (v1.2.8 62216 i8OHOX3U090411 mailbox3.ucsd.edu) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9074 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9074 > 2. What is the latest mouse wheel support? In this version of Emacs > (21.3.50.1), I see mwheel code with no version number, copyright ... 2002. > Is that the latest? Is there any doc for this, besides the source code > comments? I'm not sure what you mean by "latest mouse wheel support". If you're asking about development external to Emacs, I don't don't know of any such thing. > 3. I'd like to know how to interpret the components of the various mouse > events. In Emacs 20 this was simple; there was just the POSITION and the > DELTA. Now I see lots of components (with no Elisp Info) - what does each > mean? In particular, if I call read-event and get mouse wheel events, where > can I get the DELTA info that used to be there? I don't know w32, so double check it, but I believe you can extract it with event-click-count. > And the whole treatment of the wheel as buttons 4 & 5 is not clear to me. AFAIK it only affects X11. > I can see that mouse-4 and mouse-5 are correctly bound to real buttons, so > what is their relation to wheeling? Most Xservers are configured to map wheel events to mouse-4 and mouse-5. > 5. Finally, although I have little real hope for this, are there any > guidelines for trying to make code that deals with making the mouse wheel > work in both Emacs 20 and 21? Not that I know, and it's likely to still change in the future, at least on X11. What are you trying to do? I worked on the mwheel.el code, so I can probably help. Note that it's not new: there was no guideline before on making mouse wheel code work on both X11 and w32. Now at least, it's a bit easier (tho it's still undocumented). Stefan