unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Help buffer key bindings
Date: Thu, 17 Nov 2005 15:28:35 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICIEPHCOAA.drew.adams@oracle.com> (raw)
In-Reply-To: <fc339e4a0511171456g79f8cf70p@mail.gmail.com>


    > That's a shame, for X11, BTW (and it seems weird to me -
    > takes away two mouse buttons, just so you can use the
    > wheel?). I guess that means the same
    > happens for Web browsers in X11 environments - can't use
    > mouse-4 for Back and mouse-5 for Forward?

    Mouse-wheel scroll events are just events from the mouse like any
    other, so it certainly makes sense to call them "mouse-4" and
    "mouse-5" (the mouse itself doesn't use names, so it's up to
    higher-layers to know what a particular event means, and give them
    more meaningful names).  If you have more mouse buttons they are
    likely called mouse-6, mouse-7, ...

Uh, I'm no expert on this, but on Windows, at least, `mouse-4' and `mouse-5'
in Emacs are the 4th and 5th mouse buttons, respectively. And the wheel
works as, well, a wheel (and as `mouse-2', if you push it instead of roll
it).

I do only this to bind the 4th and 5th mouse buttons to Back and Forward:

  (define-key Info-mode-map [mouse-4] 'Info-history-back)
  (define-key Info-mode-map [mouse-5] 'Info-history-forward)

Works like a charm for Windows. As I said, if that's not the case for X11,
that's a pity, but not a reason to not make this binding for other
platforms. And, as I said, mwheel.el already contains platform-dependent
code.

  reply	other threads:[~2005-11-17 23:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-16 22:58 Help buffer key bindings Lennart Borgman
2005-11-16 23:43 ` Drew Adams
2005-11-17  2:27   ` Stefan Monnier
2005-11-17 16:44     ` Drew Adams
2005-11-17 22:56       ` Miles Bader
2005-11-17 23:28         ` Drew Adams [this message]
2005-11-20  1:19 ` Juri Linkov
2005-11-20  3:26   ` Drew Adams
2005-11-20  3:29     ` Henrik Enberg
2005-11-20  4:03       ` Drew Adams
2005-11-20  4:08         ` Miles Bader
2005-11-20  6:35           ` Drew Adams
2005-11-20  9:42   ` Lennart Borgman
2005-11-20 21:45     ` Juri Linkov
2005-11-20 21:59       ` Lennart Borgman
2005-11-21  4:49       ` Eli Zaretskii
2005-11-21  7:34         ` Juri Linkov
2005-11-21 21:46           ` Eli Zaretskii

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=DNEMKBNJBGPAOPIJOOICIEPHCOAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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 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).