unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Galen Boyer <galenboyer@hotpop.com>
Cc: emacs-devel@gnu.org
Subject: Re: Key sequence C-c C-f C-e uses invalid prefix characters
Date: 11 Dec 2002 19:08:55 -0800	[thread overview]
Message-ID: <uk7ig9bnc.fsf@hotpop.com> (raw)
In-Reply-To: E18MAuU-00021v-00@fencepost.gnu.org

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/

  reply	other threads:[~2002-12-12  3:08 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3ofieak95.fsf@Janik.cz>
     [not found] ` <5x3czq4lzb.fsf@kfs2.cua.dk>
     [not found]   ` <m3664m4ie3.fsf@Janik.cz>
     [not found]     ` <200202271030.MAA22372@is.elta.co.il>
     [not found]       ` <m3g03mabog.fsf@Janik.cz>
     [not found]         ` <5x8z9e5ymx.fsf@kfs2.cua.dk>
     [not found]           ` <m3zo1u5d44.fsf@Janik.cz>
     [not found]             ` <5xpu2q2aof.fsf@kfs2.cua.dk>
     [not found]               ` <200203010011.g210BRc05072@rum.cs.yale.edu>
2002-12-10  7:05                 ` Key sequence C-c C-f C-e uses invalid prefix characters Karl Eichwalder
2002-12-10 13:20                   ` Stefan Monnier
2002-12-10 18:27                   ` Kevin Rodgers
2002-12-11 17:44                   ` Richard Stallman
2002-12-12  3:08                     ` Galen Boyer [this message]
2002-12-11 17:44                   ` Richard Stallman
2002-12-12  6:34                     ` Karl Eichwalder
2002-12-12  6:57                       ` Miles Bader
2002-12-12  7:53                         ` Karl Eichwalder
2002-12-12 20:32                           ` Kevin Rodgers
2002-12-13 18:22                       ` Lennart Staflin
2002-12-14 15:15                         ` Felix Gatzemeier
2002-12-15  7:28                           ` Karl Eichwalder
2002-12-16 16:42                             ` Richard Stallman
2002-12-15 23:39                         ` Richard Stallman
2002-12-16 22:07                           ` Peter Flynn
2002-12-16 22:48                             ` Stefan Monnier
2002-12-17 23:34                               ` Ron Ross
2003-01-11 20:10                                 ` [Psgml-devel] " Stefan Monnier
2003-01-12  0:53                                   ` Peter Flynn
2002-12-18  0:34                               ` Peter Flynn
2002-12-18  9:10                                 ` Kai Großjohann
2002-12-18 22:32                                   ` [Psgml-devel] " Peter Flynn
2002-12-19 22:52                                   ` Dave Love
2003-01-12  4:06                                 ` [Psgml-devel] " Miles Bader
2003-01-12 14:11                                   ` Robert J. Chassell
2003-01-12 14:29                                   ` Peter Flynn
2003-01-12 16:25                                     ` Robert J. Chassell
2003-01-12 23:25                                       ` Peter Flynn
2003-01-13 12:33                                         ` Robert J. Chassell
2003-01-14  6:02                                   ` Karl Eichwalder
2003-01-15 22:57                                     ` Peter Flynn
2003-01-15 23:32                                       ` Stefan Monnier
2003-01-16 21:00                                         ` [Psgml-devel] " Peter Flynn
2003-01-17 12:42                                           ` Robert J. Chassell
2002-12-19 22:50                             ` Dave Love
2002-12-31  8:00                               ` Adding PSGML to the Emacs CVS (Re: Key sequence C-c C-f C-e uses invalid prefix characters) Karl Eichwalder
2003-01-02 18:39                                 ` Richard Stallman
2003-01-11 19:53                                 ` Stefan Monnier

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=uk7ig9bnc.fsf@hotpop.com \
    --to=galenboyer@hotpop.com \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).