[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Showing all sequences bound to a prefix?
From: |
Kevin Rodgers |
Subject: |
Re: Showing all sequences bound to a prefix? |
Date: |
Wed, 02 Sep 2009 22:19:11 -0600 |
User-agent: |
Thunderbird 2.0.0.23 (Macintosh/20090812) |
Drew Adams wrote:
how can you know all keybindings which start with a key?
For instance, "C-h c" asks me to enter a key. If I enter
"C-w" it waits for more input, which means that "C-w"
is a prefix.
Use C-h, e.g. `C-x r C-h' will show you all key bindings
starting with `C-x r'.
That doesn't always work. Try C-s C-h, for instance.
C-s is not a key sequence
I think Anselm meant "C-s is not a prefix key".
Huh? The only reason `C-s C-h' does not work (show you the isearch bindings) is
because RMS did not want it to work. He prefers that `C-h' break out of isearch
(and so initiate global help).
`C-s C-h' does not work the way e.g. `C-x r C-h' works because `C-s' is not a
prefix key. `C-s C-h' does not work the way you and I want it to work because
`C-s' invokes a transient mode (incremental search) with its own keymap, which
implies that `C-h' must be bound to mode-specific command in that keymap, and
RMS prefers a different binding than we do.
> (isearch+.el does let `C-s C-h' give you isearch help, including listing all
of
> the bindings - http://www.emacswiki.org/emacs/IsearchPlus)
Or just put this in your ~/.emacs:
(define-key isearch-mode-map "\C-h" 'isearch-mode-help)
--
Kevin Rodgers
Denver, Colorado, USA
- Showing all sequences bound to a prefix?, Elena, 2009/09/02
- Re: Showing all sequences bound to a prefix?, Anselm Helbig, 2009/09/02
- RE: Showing all sequences bound to a prefix?, Drew Adams, 2009/09/02
- Message not available
- Re: Showing all sequences bound to a prefix?, Anselm Helbig, 2009/09/02
- RE: Showing all sequences bound to a prefix?, Drew Adams, 2009/09/02
- Re: Showing all sequences bound to a prefix?,
Kevin Rodgers <=
- RE: Showing all sequences bound to a prefix?, Drew Adams, 2009/09/03
- Message not available
- Re: Showing all sequences bound to a prefix?, Anselm Helbig, 2009/09/03
- RE: Showing all sequences bound to a prefix?, Drew Adams, 2009/09/03
- Re: Showing all sequences bound to a prefix?, Bernardo, 2009/09/03
Re: Showing all sequences bound to a prefix?, Peter Dyballa, 2009/09/02
RE: Showing all sequences bound to a prefix?, Drew Adams, 2009/09/02
Message not available