unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Galen Boyer <galenboyer@hotpop.com>
Subject: Who's at fault with the key-map issues?
Date: 15 Nov 2002 15:03:11 -0600	[thread overview]
Message-ID: <uof8qa6qy.fsf@standardandpoors.com> (raw)

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 when something like the following is in files that
get loaded.

(require 'sgml-mode)
(require 'psgml)

The error is:

   "Key sequence C-c C-f C-e uses invalid prefix characters"

brought about by C-c C-f being a keystroke in sqml-mode while
being defined as a prefix key in psgml-mode.

The actual sequence of loading for me is

(require 'xml-lite)
(require 'xae)

xml-lite requires sgml-mode, xaes require psgml.

So, it seems that the culprit is psgml since it didn't check with
sgml keymap before defining new keys, but I'm not sure...  

-- 
Galen Boyer

             reply	other threads:[~2002-11-15 21:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-15 21:03 Galen Boyer [this message]
2002-11-16 18:56 ` Who's at fault with the key-map issues? Kai Großjohann
2002-11-17  1:10   ` Galen Boyer
2002-11-17 16:33     ` Kai Großjohann
2003-02-07 16:28     ` emacs a file on a different machine Prabhat Acharya
2003-02-07 17:25       ` Kai Großjohann

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=uof8qa6qy.fsf@standardandpoors.com \
    --to=galenboyer@hotpop.com \
    /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.
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).