unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Karl Eichwalder <keichwa@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: Key sequence C-c C-f C-e uses invalid prefix characters
Date: Thu, 12 Dec 2002 07:34:22 +0100	[thread overview]
Message-ID: <shhedj924x.fsf@tux.gnu.franken.de> (raw)
In-Reply-To: <E18MAuW-000223-00@fencepost.gnu.org> (Richard Stallman's message of "Wed, 11 Dec 2002 12:44:40 -0500")

Richard Stallman <rms@gnu.org> writes:

>     > - Use `psgml-' as prefix rather than `sgml-' so that the two packages can
>     >   coexist peacefully.
>
> That is definitely the right way.

Thanks for advise.  Lennart, do you agree with this change?  I like to
offer help to get this job done (preparing a psgml test release,
testing, documentation).


Kevin Rodgers <kevinr@ihs.com> writes:

> This is a long standing problem.  Here's how I tried to hack around it:
>
> http://groups.google.com/groups?q=group:gnu.emacs.help&selm=3BAB7A26.1A902239%40ihs.com

Thanks for the pointer!  You wrote:

> Von:Kevin Rodgers (kevinr@ihs.com)
> Betrifft:Re: Blocking DTD usage with PSGML-mode
> Newsgroups:gnu.emacs.help
> Datum:2001-09-21 10:34:22 PST

[...]

> Here's a crazy way to do that: evaluate this after psgml is loaded (but
> before sgml-mode is loaded):

Okay, the tricky part is tp load psgml early enough; this sequence
seems to work for me:

(eval-after-load 'psgml
  ;; Kevin Rodgers <kevinr@ihs.com> in gnu.emacs.help,
  ;; 2001-09-21 10:34:22 PST
  (mapatoms (lambda (symbol)
	      (if (string-match "\\`sgml\\>" (symbol-name symbol))
		  (let ((psgml-symbol (intern (concat "p" (symbol-name symbol)))))
		    (if (boundp symbol)
			(set psgml-symbol (symbol-value symbol)))
		    (if (fboundp symbol)
			(fset psgml-symbol (symbol-function symbol)))
		    (setplist psgml-symbol (symbol-plist symbol))
		    (unintern symbol))))))

(defun ke-psgml-html-mode ()
  "Load psgml first."
  (require 'psgml)
  (html-mode))

(setq auto-mode-alist
      (cons ' ("\\.s?html?\\'" . ke-psgml-html-mode) auto-mode-alist))


Now users have to change all their local variables sections from the
"sgml" namespace:

    <!-- Keep this comment at the end of the file
    Local variables:
    mode: sgml
    sgml-indent-step:1
    End:
    -->

to "psgml" one:

    <!-- Keep this comment at the end of the file
    Local variables:
    mode: psgml
    psgml-indent-step:1
    End:
    -->

But settings in .emacs must continue to use "sgml", or course.

-- 
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/             |   (*)/'(*)

  reply	other threads:[~2002-12-12  6:34 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
2002-12-11 17:44                   ` Richard Stallman
2002-12-12  6:34                     ` Karl Eichwalder [this message]
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=shhedj924x.fsf@tux.gnu.franken.de \
    --to=keichwa@gmx.net \
    --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).