all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Michael Welsh Duggan <mwd@md5i.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: RE: Why mouse-1/2/3 ?
Date: Tue, 28 Apr 2020 08:27:20 -0700 (PDT)	[thread overview]
Message-ID: <3e3bc3c5-92fd-4291-969e-de0b6cfd4dd1@default> (raw)
In-Reply-To: <87wo60o32i.fsf@md5i.com>

> It comes straight from X11 terminology.
> 
> 1 = left
> 2 = middle
> 3 = right
> 4 = scroll wheel up
> 5 = scroll wheel down
> 6 = scroll wheel left (yes, really)
> 7 = scroll wheel right
> 8 = 4th button (browser back)
> 9 = 5th button (browser forward)
> 
> In point of fact, Emacs's first scroll-wheel support was on Windows.  I
> know because I wrote it at the time.  (This was in the '96-'97
> timeframe.  I didn't even have a mouse with a wheel at the time.  I had
> to borrow a coworker's in order to test the code.)  At the time, I used
> a new event, mouse-wheel, for the mouse-wheel event.  I don't know if
> X11 supported a mouse wheel at this time.  Mainline (X11) emacs did not
> need to change to support a mouse wheel once X11 had support for it: it
> was just a new button number.  The symbol was just a concatenation of
> "mouse-" and the button number.  Later work was done to unify NTEmacs
> and mainline emacs, and the Windows-specific stuff changed to be more
> like the X11 version.
> 
> One major advantage of the numbered naming system is listed above: the
> code in emacs didn't need to change in the slightest when new buttons
> were added.

Excellent.  Thanks for reporting this, as the logic
behind this and as history.



  reply	other threads:[~2020-04-28 15:27 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-25 17:45 Why mouse-1/2/3 ? ndame
2020-04-25 18:19 ` Zach Pearson
2020-04-26  4:09   ` Po Lu
2020-04-27  9:45     ` ndame
2020-04-27  9:53       ` tomas
2020-04-27 11:10       ` Po Lu
2020-04-27 11:12         ` ndame
2020-04-27 11:46           ` Po Lu
2020-04-26  4:08 ` Po Lu
2020-04-26  6:12   ` Tim Cross
2020-04-26 16:41   ` Drew Adams
2020-04-27  9:30     ` Po Lu
2020-04-27  9:40       ` tomas
2020-04-27  9:47         ` Pip Cet
2020-04-27 15:13           ` Stefan Monnier
2020-04-28  0:40 ` Michael Welsh Duggan
2020-04-28 15:27   ` Drew Adams [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-04-27 10:37 ndame
2020-04-27 10:40 ` tomas
2020-04-27 12:32   ` Ulrich Mueller
2020-04-28  2:47     ` Richard Stallman
2020-04-27 10:41 ` Andreas Schwab
2020-04-27 10:47   ` ndame
2020-04-27 11:02     ` tomas
2020-04-27 10:53   ` ndame
2020-04-27 11:11 ` Po Lu
2020-04-27 13:29   ` Clément Pit-Claudel
2020-04-27 13:14 ` Dmitry Gutov
2020-04-27 13:27   ` ndame
2020-04-27 15:08     ` Dmitry Gutov
2020-04-27 10:50 ndame
2020-04-27 11:23 ndame
2020-04-27 11:31 ` tomas
2020-04-27 13:36   ` Clément Pit-Claudel
2020-04-27 13:39     ` Dmitry Gutov
2020-04-27 14:08     ` tomas
2020-04-27 14:26       ` Clément Pit-Claudel
2020-04-27 14:50         ` tomas
2020-04-27 16:00     ` Drew Adams
2020-04-27 19:04       ` chad
2020-04-28  2:51         ` Richard Stallman
2020-04-28  3:48           ` Tim Cross
2020-04-27 16:01     ` 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

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

  git send-email \
    --in-reply-to=3e3bc3c5-92fd-4291-969e-de0b6cfd4dd1@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=mwd@md5i.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.