unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ffap bindings suggestion
@ 2006-02-08 18:46 Drew Adams
  2006-02-09 17:33 ` Juri Linkov
  0 siblings, 1 reply; 12+ messages in thread
From: Drew Adams @ 2006-02-08 18:46 UTC (permalink / 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?

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-02-13 15:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-08 18:46 ffap bindings suggestion Drew Adams
2006-02-09 17:33 ` 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

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).