If i set sgml-validate-command to "xmllint" in
my .emacs, and then edit a file in sgml-mode, pressing
M-x sgml-validate brings up "xmllint" as the command.
However when i'm editing a file in xml-mode, pressing
M-x sgml-validate brings up the default validate
command: "nsgml -wxml -s filename".
This is a bug in the way xml-mode has derived from
sgml-mode? or am i doing something wrong?
For your information, I'm using XEmacs-21.4.6 on
Solaris. I've tried the lastest XEmacs psgml package
psgml-1.26 and this has the same behaviour.
The reason why i'm pointing the at xml-mode is that in
psgml.el, in the (define-derived-mode xml-mode ....)
declaration there is a line:
(setq sgml-validate-command "nsgmls -wxml -s %s %s")
Perhaps there should be an (unlesss ..) to see if the
user has already set a value for that variable? I'm
new to lisp so apoligies if this is the wrong
direction.
Logged In: YES
user_id=30503
Version 1.2.5 of PSGML will add a sgml-xml-validate-
command variable that will be used to set sgml-
validate-command in XML-mode. That should solve
this.
Logged In: YES
user_id=30503