unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Karl Eichwalder <keichwa@gmx.net>
Cc: no-spam@cua.dk (Kim F. Storm),
	Pavel@Janik.cz, emacs-devel@gnu.org,
	psgml-devel@lists.sourceforge.net, mvidner@suse.cz
Subject: Re: Key sequence C-c C-f C-e uses invalid prefix characters
Date: Tue, 10 Dec 2002 08:05:26 +0100	[thread overview]
Message-ID: <shk7ii8ibt.fsf@tux.gnu.franken.de> (raw)
In-Reply-To: <200203010011.g210BRc05072@rum.cs.yale.edu> ("Stefan Monnier"'s message of "Thu, 28 Feb 2002 19:11:27 -0500")

"Stefan Monnier" <monnier+gnu/emacs/pretest@RUM.cs.yale.edu> writes:

>> In any case, this would be easy to fix in psgml.el (is anyone listening ?):
>> just be sure to unbind (define-key ... nil) all of the C-c C-? prefixes in
>> sgml-mode-map before (re)using them as prefix keys later on.  Better do this
>> on too many keys than too few.
>
> First, I simply think that define-key should not fail in the above
> way at all (i.e. rebinding an existing prefix key to a command,
> thus turning a prefix key into a non-prefix key, should work just fine
> because it is a perfectly acceptable operation).

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!).  I don't know whether that's a bug or a feature;
problably a feature since the Elisp manual says:

     Every prefix of KEY must be a prefix key (i.e., bound to a keymap)
     or undefined; otherwise an error is signaled.  If some prefix of
     KEY is undefined, then `define-key' defines it as a prefix key so
     that the rest of KEY can be defined as specified.

My emacs lisp skills are limited, but I'd like to sort out this
problem; Stefan made these proposals to fix the problem in a sane
manner:

> Other ways to fix the problem:
> - Use `psgml-' as prefix rather than `sgml-' so that the two packages can
>   coexist peacefully.
> - Explicitly (unload-feature 'sgml-mode) at the beginning of psgml's code.

The second proposal looks rather heavy, but easy to implement.  I guess
some users won't like it, since they might want to make use of the HTML
support provided by sgml-mode.

The first way would mean you will have to change all the files all over
and in the end user customizations will be broken and all users will get
used to new commands: M-x psgml-... instead of M-x sgml-... 

What do you think?  Especially what's your position on this issue,
Lennart?  By all means we must avoid a fork!

-- 
ke@suse.de (work) / keichwa@gmx.net (home):              |
http://www.gnu.franken.de/ke/                            |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

       reply	other threads:[~2002-12-10  7:05 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                 ` Karl Eichwalder [this message]
2002-12-10 13:20                   ` Key sequence C-c C-f C-e uses invalid prefix characters Stefan Monnier
2002-12-10 18:27                   ` Kevin Rodgers
2002-12-11 17:44                   ` Richard Stallman
2002-12-12  3:08                     ` Galen Boyer
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=shk7ii8ibt.fsf@tux.gnu.franken.de \
    --to=keichwa@gmx.net \
    --cc=Pavel@Janik.cz \
    --cc=emacs-devel@gnu.org \
    --cc=mvidner@suse.cz \
    --cc=no-spam@cua.dk \
    --cc=psgml-devel@lists.sourceforge.net \
    /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).