all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* PSGML questions
@ 2004-05-21  9:43 Peter Westlake
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Westlake @ 2004-05-21  9:43 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-06-11 10:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6687.1085149417.1061.help-gnu-emacs@gnu.org>
2004-05-21 17:05 ` PSGML questions Kevin Rodgers
2004-05-21 18:19   ` Peter Westlake
2004-05-21 22:19 ` Kevin Rodgers
2004-05-22  3:44   ` Ian Zimmerman
2004-05-24 18:33     ` Kevin Rodgers
2004-05-24 23:03       ` Peter Westlake
2004-05-25  7:04         ` Kai Grossjohann
     [not found]         ` <mailman.7215.1085472742.1061.help-gnu-emacs@gnu.org>
2004-05-25  9:00           ` Thomas Haselberger
2004-06-11 10:47             ` Peter Westlake
2004-05-21  9:43 Peter Westlake

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.