unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: mouse wheel support in Emacs 21.3.50
Date: Fri, 24 Sep 2004 17:25:09 GMT	[thread overview]
Message-ID: <jwvd60btwst.fsf-monnier+gnu.emacs.bug@gnu.org> (raw)
In-Reply-To: mailman.3845.1096007084.1998.bug-gnu-emacs@gnu.org

> 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

       reply	other threads:[~2004-09-24 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3845.1096007084.1998.bug-gnu-emacs@gnu.org>
2004-09-24 17:25 ` Stefan Monnier [this message]
2004-10-24 22:02 ` mouse wheel support in Emacs 21.3.50 Jason Rumney
2004-10-25 16:31   ` Drew Adams
2004-09-24  6:17 Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvd60btwst.fsf-monnier+gnu.emacs.bug@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).