From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Eichwalder Newsgroups: gmane.emacs.devel,gmane.emacs.psgml.devel Subject: Re: Key sequence C-c C-f C-e uses invalid prefix characters Date: Thu, 12 Dec 2002 07:34:22 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org 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 1039675063 27580 80.91.224.249 (12 Dec 2002 06:37:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2002 06:37:43 +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 18MMya-0007Ai-00 for ; Thu, 12 Dec 2002 07:37:40 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18MN9z-0005Ve-00 for ; Thu, 12 Dec 2002 07:49:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MMyX-0004nd-01 for emacs-devel@quimby.gnus.org; Thu, 12 Dec 2002 01:37:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18MMyJ-0004il-00 for emacs-devel@gnu.org; Thu, 12 Dec 2002 01:37:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18MMyF-0004dR-00 for emacs-devel@gnu.org; Thu, 12 Dec 2002 01:37:22 -0500 Original-Received: from elvis.franken.de ([193.175.24.41]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MMyE-0004Yf-00; Thu, 12 Dec 2002 01:37:18 -0500 Original-Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 18MMyA-0006QJ-00; Thu, 12 Dec 2002 07:37:14 +0100 Original-Received: by tux.gnu.franken.de (Postfix, from userid 270) id A0B5DA43E4; Thu, 12 Dec 2002 07:34:22 +0100 (CET) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 11 Dec 2002 12:44:40 -0500") Original-Lines: 81 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Original-cc: monnier+gnu/emacs/pretest@RUM.cs.yale.edu Original-cc: no-spam@cua.dk Original-cc: Kevin Rodgers Original-cc: psgml-devel@lists.sourceforge.net Original-cc: mvidner@suse.cz Original-cc: Pavel@Janik.cz X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10082 gmane.emacs.psgml.devel:61 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10082 Richard Stallman 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 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 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: to "psgml" one: 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/ | (*)/'(*)