From: Stefan Monnier <monnier@iro.umontreal.ca>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: function-key-map
Date: Wed, 10 Oct 2007 10:31:30 -0400 [thread overview]
Message-ID: <jwvlkabxd4i.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1IfbBK-00077T-BA@fencepost.gnu.org> (Richard Stallman's message of "Wed\, 10 Oct 2007 09\:00\:58 -0400")
> Now that the original purpose of `function-key-map' is done
> by `input-decode-map', what purposes should `function-key-map'
> be used for? Is it still useful?
Yes, it's still very useful. See for example how term/xterm.el uses both.
Or term/x-win.el. I.e. it's useful to give optional remapping corresponding
to alternative key-names.
I think it'd even be worthwhile to extend the functionality of
function-key-map in the following ways:
- make it possible to specify a "set of keys" to remap via e.g. a predicate.
- apply function-key-map repeatedly (i.e. apply it to its output).
This way we could try and move all the ad-hoc C code in read-key-sequence
which:
- drops down-mouse-N events if they're not bound
- remaps triple-mouse-N to double-mouse-N if not bound
- remaps double-mouse-N to mouse-N if not bound
- remaps shift-<key> to <key> if not bound
- a few more along the same lines
we could also add
- remap all modifier combinations of mouse-4 to wheel-up (with the same
modifiers), and similarly for wheel-down, wheel-left and wheel-right.
This would significantly help clean up the horrendously long
read_key_sequence function.
Stefan
next prev parent reply other threads:[~2007-10-10 14:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 13:00 function-key-map Richard Stallman
2007-10-10 14:31 ` Stefan Monnier [this message]
2007-10-11 4:23 ` function-key-map T. V. Raman
2007-10-11 13:55 ` function-key-map Stefan Monnier
2007-10-12 1:17 ` function-key-map T. V. Raman
2007-10-12 2:46 ` function-key-map Richard Stallman
2007-10-12 15:19 ` function-key-map Stefan Monnier
2007-10-13 0:18 ` function-key-map Richard Stallman
2007-10-13 3:46 ` function-key-map Stefan Monnier
2007-10-13 14:14 ` function-key-map Richard Stallman
2007-10-14 18:58 ` function-key-map Stefan Monnier
2007-10-15 16:03 ` function-key-map Richard Stallman
2007-10-16 20:31 ` function-key-map Stefan Monnier
2007-10-11 5:19 ` function-key-map Richard Stallman
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=jwvlkabxd4i.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/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.