From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.help Subject: Re: 2-key prefix and Invalid Prefix keys in sequence Date: Sun, 6 Mar 2005 02:45:03 +0000 Message-ID: <20050306024503.GA11257@sol.shootybangbang.com> References: <112iadoa88vv7bc@news.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110077068 27614 80.91.229.2 (6 Mar 2005 02:44:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2005 02:44:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 06 03:44:27 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D7lkc-0006gb-Ih for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Mar 2005 03:44:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7m46-0002cp-Fm for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Mar 2005 22:04:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D7m37-0002CK-Ok for help-gnu-emacs@gnu.org; Sat, 05 Mar 2005 22:03:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D7m31-000290-Ue for help-gnu-emacs@gnu.org; Sat, 05 Mar 2005 22:03:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7m31-00028N-RM for help-gnu-emacs@gnu.org; Sat, 05 Mar 2005 22:03:15 -0500 Original-Received: from [82.108.132.252] (helo=sol.shootybangbang.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D7llS-0000CW-5v for help-gnu-emacs@gnu.org; Sat, 05 Mar 2005 21:45:06 -0500 Original-Received: by sol.shootybangbang.com (Postfix, from userid 1000) id BE4232B1; Sun, 6 Mar 2005 02:45:03 +0000 (GMT) Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <112iadoa88vv7bc@news.supernews.com> X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24548 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24548 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.