From: John Paul Wallington <jpw@gnu.org>
Subject: Re: 2-key prefix and Invalid Prefix keys in sequence
Date: Sun, 6 Mar 2005 02:45:03 +0000 [thread overview]
Message-ID: <20050306024503.GA11257@sol.shootybangbang.com> (raw)
In-Reply-To: <112iadoa88vv7bc@news.supernews.com>
Tim Johnson wrote:
> I'd like to map out a series of 3-key commands, with
> control-c control-; as the prefix.
> Initially I am attempting the following:
> (global-set-key [(control \c\;) (b)] 'isearch-forward)
> ;; evaluation gives me the "Invalid Prefix Keys in sequence"
> ;; error message
How about:
(defvar foo-map (make-sparse-keymap)
"Foo keymap.")
(define-prefix-command 'foo-map)
(global-set-key [(control c) (control \;)] 'foo-map)
(define-key foo-map "b" 'isearch-forward)
[FWIW, C-; may not be a good choice because many terminals won't pass
it to Emacs -- on my main desktop machine at home the Linux console
ignores C-; and the xterm program passes on a bare semi-colon]
The section on Keymaps in the elisp info manual talks about defining
Prefix Keymaps. Perhaps the emacs info manual should too.
next prev parent reply other threads:[~2005-03-06 2:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-05 3:38 2-key prefix and Invalid Prefix keys in sequence Tim Johnson
2005-03-06 2:45 ` John Paul Wallington [this message]
[not found] ` <mailman.2729.1110078204.32256.help-gnu-emacs@gnu.org>
2005-03-06 17:22 ` Tim Johnson
2005-03-06 20:10 ` John Paul Wallington
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=20050306024503.GA11257@sol.shootybangbang.com \
--to=jpw@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.
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).