OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: Re: psgml: how to set sgml-validate-command?


"M.-A. DARCHE" <ma.darche@cynode.org> writes:

> On 2002-04-05 08:41 (Friday), Gunnar Sigurdsson wrote:
> > Looking at the psgml source code reveals:
> > 
> >     (setq sgml-validate-command "nsgmls -wxml -s %s %s")
> > 
> > all I want to do is to change the command to:
> > 
> >     nsgmls -wxml -wno-idref -s %s %s
> > 
> > I have tried the obvious, putting this in the .emacs file:
> > 
> >     (setq sgml-validate-command "nsgmls -wxml -wno-idref -s %s %s")
> > 
> > and doing the corresponding thing inside individual docbook files
> > with no luck. The problem is that the above change has no effect
> > the value of the remains the same ("nsgmls -wxml -s %s %s"). 

I think it's because of buffer-local variables.
M-x customize <RET> psgml <RET> should give the chance to set
the default interactively.

Anyway, this seems to be specific to the file. I put such stuff into
file local variables at the end of the file. You get a template when
you "Save File Options" from the menu.


> Here is what I advise you to do to change psgml variables :
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> (defun custom-xml-behavior() "Sets custom behavior for sgml mode"
>   (interactive)
>   (setq sgml-indent-data t)
>   (setq
>    sgml-validate-command "nsgmls -wxml -wno-idref -s %s %s"
>    ))
> 
> (add-hook 'xml-mode-hook 'custom-xml-behavior)

I only put more complex stuff into this hook (like support for
attribute fontification, keymap stuff and such).

Jens




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC