From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Westlake Newsgroups: gmane.emacs.help Subject: PSGML questions Date: Fri, 21 May 2004 10:43:57 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085149497 31794 80.91.224.253 (21 May 2004 14:24:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 May 2004 14:24:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 21 16:24:28 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BRAwl-0008QH-01 for ; Fri, 21 May 2004 16:24:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BRAwM-0003xr-LG for geh-help-gnu-emacs@m.gmane.org; Fri, 21 May 2004 10:24:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BRAvu-0003w3-Mo for help-gnu-emacs@gnu.org; Fri, 21 May 2004 10:23:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BRAvN-0003oA-0K for help-gnu-emacs@gnu.org; Fri, 21 May 2004 10:23:32 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BRAVt-00077h-Ih for help-gnu-emacs@gnu.org; Fri, 21 May 2004 09:56:41 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BRA7F-0008GF-00 for ; Fri, 21 May 2004 15:31:13 +0200 Original-Received: from cam-admin0.cambridge.arm.com ([193.131.176.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 May 2004 15:31:13 +0200 Original-Received: from postmaster by cam-admin0.cambridge.arm.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 May 2004 15:31:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cam-admin0.cambridge.arm.com User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:ksWyRllhj9K1ynlw6hVYHk8zio4= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18646 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18646 I am trying to use PSGML 1.3.1 with Emacs 21.3, and there is a conflict between PSGML and sgml-mode.el, because they both define sgml-mode. I can unload-feature the original sgml-mode and then load psgml, but that only works interactively. For some reason it doesn't work in .emacs, perhaps because the original sgml-mode has already been loaded by then to handle some XML files opened by Emacs desktop. Taking sgml-mode.el out of the Emacs directory works up to a point, but gives an error, probably because the desktop tries to load it. To make this work I would need to remove all mention of sgml-mode.el from the Emacs lisp directory. This would be bad because I would have to do it all again next time I upgrade. Alternatively, I could rename everything in PSGML (to psgml-mode, etc). auto-mode-alist associates .sgml and .xml with sgml-mode, but putting new entries at the beginning will override that. The question is whether any other packages call sgml-mode explicitly. Several of the standard ones refer to it (flyspell, tildify, whitespace, and others) but don't actually call it. Does anyone know of any packages that do? - since writing that I have tried renaming all the sgml- variables and functions in PSGML to psgml-, and it nearly works. But sometimes I get the error "Symbol's value as variable is void: psgml-local-catalogs". If the XML file is the current buffer when I quit Emacs, the error will not happen and the file will be parsed and fontified. If any other buffer is current on quitting, the error happens and the file buffer is not fontified. Either way, if I go to the Markup menu and try to "Add Element To Element", it tells me that symbol psgml-add-element-menu's value as a function is void. This might not be entirely my fault: a colleague has Xemacs, which has PSGML as standard, and it gave the same error about sgml-add-element-menu. I have tried to debug with edebug, but so far all I have achieved is to confirm that the symbols are void just as the message says. Any suggestions for what might be going wrong? And has anyone seen any of these errors in the original PSGML 1.3.1? Peter.