Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 sgml-catalog-files initialization

open
nobody
None
5
2001-06-06
2001-06-06
Anonymous
No

In the psgml.el,v 1.13 2001/02/13, $SGML_CATALOG_FILES
completely override the sgml-catalog-files default
value. The sgml-data-directory, however is
configuration data hard to get at from the outside.

It may be an idea to prefix the files list with the
SGML_CATALOG_FILES (if defined), followed by the
default path. The following snippet does this:

(let ((SGML_CATALOG_FILES (getenv
"SGML_CATALOG_FILES")))
(setq
sgml-catalog-files
(split-path
(concat (if SGML_CATALOG_FILES
(concat SGML_CATALOG_FILES
path-separator)
)
"CATALOG" path-separator
(expand-file-name "CATALOG"
sgml-data-directory)
)
)
)
)

To allow users to completely override the path, a
convention similar to the TeX-kpathsearch one could be
used: `A quad-colon ("::") anywhere inserts the default
path in that place'. But that looks like too much
effort for a small gain.

Discussion