Re: catalog in sgml-validate-command?
Steinar Bang <[email protected]> Tue, 04 Nov 2003 00:11:49 +0100
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Organization | Probably a good idea |
| Message-ID | <[email protected]> |
>>>>> Bob Bernstein <[email protected]>: > Also, doing this: > setenv SGML_CATALOG_FILES /usr/pkg/share/sgml/catalog > doesn't seem to help either. Setting the var in the environment, and > removing the line above from .emacs, makes things worse, as psgml > then cannot find the dtd without a system identifier. I have this in my .emacs: (defun my-sgml-find-catalog-files () "Set the CATALOG path to the value of SGML_CATALOG_FILES, or to a hardcoded path if it isn't set" (setq sgml-catalog-files (sgml-parse-colon-path (or (getenv "SGML_CATALOG_FILES") "/etc/sgml/catalog:catalog:CATALOG:/opt/pub/lib/sgml/CATALOG" )))) (add-hook 'sgml-mode-hook 'my-sgml-find-catalog-files) But I'm not really sure if it works. At some point in time it didn't. At least not on Win32. And I've also wondered from time to time (but never got around to checking) if this code was redundant. Ie. that psgml itself had started setting sgml-catalog-files based on the SGML_CATALOG_FILES variable. Obviously not. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/