From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Galen Boyer Newsgroups: gmane.emacs.psgml.devel,gmane.emacs.devel Subject: Re: Key sequence C-c C-f C-e uses invalid prefix characters Date: 11 Dec 2002 19:08:55 -0800 Sender: psgml-devel-admin@lists.sourceforge.net Message-ID: References: <5x3czq4lzb.fsf@kfs2.cua.dk> <200202271030.MAA22372@is.elta.co.il> <5x8z9e5ymx.fsf@kfs2.cua.dk> <5xpu2q2aof.fsf@kfs2.cua.dk> <200203010011.g210BRc05072@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039659295 22072 80.91.224.249 (12 Dec 2002 02:14:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2002 02:14:55 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18MIsH-0005jr-00 for ; Thu, 12 Dec 2002 03:14:53 +0100 Original-Received: from lists.sourceforge.net ([66.35.250.206] helo=sc8-sf-list2.sourceforge.net) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18MJ3b-0003Fk-00 for ; Thu, 12 Dec 2002 03:26:35 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.13] helo=sc8-sf-list1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 18MIob-0002jf-00; Wed, 11 Dec 2002 18:11:05 -0800 Original-Received: from main.gmane.org ([80.91.224.249]) by sc8-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 18MIoD-0002V6-00 for ; Wed, 11 Dec 2002 18:10:41 -0800 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18MInw-0005WP-00 for ; Thu, 12 Dec 2002 03:10:24 +0100 Original-To: psgml-devel@lists.sourceforge.net X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18MGj2-0005JS-00 for ; Thu, 12 Dec 2002 00:57:12 +0100 Original-Path: not-for-mail Original-Lines: 47 Original-NNTP-Posting-Host: 209-6-20-14.c3-0.wrx-ubr3.sbo-wrx.ma.cable.rcn.com Original-X-Trace: main.gmane.org 1039651032 14612 209.6.20.14 (11 Dec 2002 23:57:12 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Wed, 11 Dec 2002 23:57:12 +0000 (UTC) Original-Sender: galenboyer@hotpop.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: psgml-devel-admin@lists.sourceforge.net X-BeenThere: psgml-devel@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: X-Original-Date: 11 Dec 2002 19:08:55 -0800 Xref: main.gmane.org gmane.emacs.psgml.devel:60 gmane.emacs.devel:10079 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10079 On Wed, 11 Dec 2002, rms@gnu.org wrote: > AFAIK (21.2), define-key still isn't able to rebind an existing > prefix key; at least I failed to load psgml when sgml-mode coming > with Emacs was loaded first (the problem was brought to my > attention by Martin Vidner, thanks!). > > If there is really a bug here, please supply a *precise test case* > so we can move from mere discussion to productive debugging. Make this your only entries in your .emacs (Modify the path so Emacs can find your psgml.el) (require 'sgml-mode) (load-file "c:/emacs/site-lisp/packages/xae/psgml/psgml.el") Now, try to start Emacs. You should recieve something similar to the following message. (C:\emacs\emacs-21.1\bin\emacs.exe) Loading c:/emacs/site-lisp/packages/xae/psgml/psgml.el (source)... An error has occurred while loading `c:/emacs/home/.emacs': error: "Key sequence C-c C-f C-e uses invalid prefix characters" To ensure normal operation, you should investigate the cause of the error in your initialization file and remove it. Start Emacs with the `--debug-init' option to view a complete error backtrace The problem is caused precisely because: sqml-mode sets part of sgml-mode-map with (define-key map "\C-c\C-f" 'sgml-skip-tag-forward) psgml-mode sets part of sgml-mode-map with (define-key sgml-mode-map "\C-c\C-f\C-e" 'sgml-fold-element) (define-key sgml-mode-map "\C-c\C-f\C-r" 'sgml-fold-region) (define-key sgml-mode-map "\C-c\C-f\C-s" 'sgml-fold-subelement) (define-key sgml-mode-map "\C-c\C-f\C-x" 'sgml-expand-element) These clash. -- Galen deForest Boyer Sweet dreams and flying machines in pieces on the ground. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/