From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Binding Keymap prefix to Major Mode Date: Fri, 01 Apr 2005 14:59:06 -0900 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <114ro1mfgnlds46@news.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112399994 21386 80.91.229.2 (1 Apr 2005 23:59:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2005 23:59:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 01:59:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DHW2k-0002CJ-9H for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Apr 2005 01:59:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHW45-0004Gf-Qf for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Apr 2005 19:00:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xit-03!sn-xit-08!sn-post-01!supernews.com!news.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805 Netscape/7.2 X-Accept-Language: en-us, en Original-X-Complaints-To: abuse@supernews.com Original-Lines: 22 Original-Xref: shelby.stanford.edu gnu.emacs.help:129788 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:25344 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25344 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. TIA Tim