From: "Drew Adams" <drew.adams@oracle.com>
Subject: ffap bindings suggestion
Date: Wed, 8 Feb 2006 10:46:36 -0800 [thread overview]
Message-ID: <MEEKKIABFKKDFJMPIOEBIEPLCOAA.drew.adams@oracle.com> (raw)
1. Library ffap.el makes these bindings, among others:
(global-set-key [S-mouse-3] 'ffap-at-mouse)
(global-set-key [C-S-mouse-3] 'ffap-menu)
These keys are undefined in vanilla Emacs, so this is not bothersome.
However, it is common to use mouse-3 for pop-up menus, and alternative,
related menus might, in some contexts, be appropriate for mouse-3 plus
modifiers. For example, a library might want to use mouse-3 for one menu,
S-mouse-3 for a related menu, and C-S-mouse-3 for another related menu.
Suggestion: Change the ffap bindings to [S-mouse-2] and [C-S-mouse-2].
These keys are also undefined in vanilla Emacs. [S-mouse-2] is akin to
mouse-2 when the latter follows a link (which is essentially what
`ffap-at-mouse' does), so it feels natural to use.
I use the mouse-2 bindings suggested here, and I don't mind continuing to
customize my setup to do so. I just wonder if they might also be better as
the default bindings.
2. Should variable `ffap-bindings' be a defcustom, so that users can more
easily customize the bindings? In that case, the library could be modified
slightly to not require users to put `(ffap-bindings)' in their .emacs:
simply loading the library would create the (default or customized)
bindings.
There are no doubt other, cleaner ways (minor mode?) to deal with the
bindings, but the current way, in any case, seems a bit awkward.
One simple, standard approach would be to not make any bindings, and just
mention the current bindings as suggestions. That would of course require
users to copy all of the key-binding code (possibly modifying it) to their
.emacs. A single defcustom seems like a reasonable alternative: if you do
nothing, you get the default bindings, but it is also easy to change them.
How do other libraries deal with multiple non-standard bindings?
next reply other threads:[~2006-02-08 18:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-08 18:46 Drew Adams [this message]
2006-02-09 17:33 ` ffap bindings suggestion Juri Linkov
2006-02-09 18:13 ` Drew Adams
2006-02-12 1:56 ` Drew Adams
2006-02-12 13:43 ` Stefan Monnier
2006-02-12 15:51 ` Drew Adams
2006-02-12 17:15 ` Stefan Monnier
2006-02-12 17:34 ` Drew Adams
2006-02-12 20:48 ` Stefan Monnier
2006-02-12 21:19 ` Drew Adams
2006-02-13 5:06 ` Stefan Monnier
2006-02-13 15:29 ` 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=MEEKKIABFKKDFJMPIOEBIEPLCOAA.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 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.