From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: Binding Keymap prefix to Major Mode Date: 1 Apr 2005 18:26:10 -0800 Organization: http://groups.google.com Message-ID: <1112408770.478029.237080@g14g2000cwa.googlegroups.com> References: <114ro1mfgnlds46@news.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1112408940 8067 80.91.229.2 (2 Apr 2005 02:29:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2005 02:29:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 04:28:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DHYNc-0004g4-AV for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Apr 2005 04:28:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHYP0-0005Xv-Bq for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Apr 2005 21:30:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 198.74.20.75 Original-X-Trace: posting.google.com 1112408783 508 127.0.0.1 (2 Apr 2005 02:26:23 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 2 Apr 2005 02:26:23 +0000 (UTC) In-Reply-To: <114ro1mfgnlds46@news.supernews.com> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=198.74.20.75; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:129789 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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 Xref: news.gmane.org gmane.emacs.help:25345 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25345 Tim Johnson wrote: > Hi: > I've been working on a major mode for the rebol programming language. > The following code has been evaluated: > (defvar rebol-keymap (make-sparse-keymap) "Rebol mode keymap") > (defcustom rebol-keymap-prefix [(control ?')] > "*Keymap prefix string for rebol-keymap" > :type 'string > :group 'rebol) > (local-set-key rebol-keymap-prefix rebol-keymap) > (define-key rebol-keymap "b" 'previous-rebol-definition) > ;; When I load a file that auto-loads the mode, I find > ;; that "b" is bound to 'previous-rebol-definition, not > ;; to "\C-' b" which is what I hope for. > NOTE: I've tried [(control \')] and [(control c)(control c)] > as prefix symbols with the same (lack of) results. > I presume that something else needs to be done to properly bind > this prefix to the keymap. > > All help, docs and examples are welcome. > It works for me. I'm thinking the problem is in your rebol-mode function. What does your (use-local-map ...) statement look like? If it says (use-local-map rebol-keymap) that would certainly explain it.