[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Re: Interface of kpathsea file search

From: David Kastrup
Subject: Re: [AUCTeX-devel] Re: Interface of kpathsea file search
Date: Wed, 23 Nov 2005 20:32:32 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2005-11-23) writes:
>> Ralf Angeli <address@hidden> writes:
>>> Okay, in order to fix the former bug I can add a
>>>     ("sty" "${TEXINPUTS}" '("sty"))
>>> to `TeX-kpathsea-format-alist',
>> More likely ${TEXINPUTS.latex}.
> Okay.
>>> but I am not really feeling comfortable with this because it is a
>>> misuse of the variable and the interface of
>>> `TeX-search-files-kpathsea'.
>> Actually, I can't see the misuse here.  Looks like the intended use to
>> me.
> As far as I understand the variable's doc string and intention the
> first item in each element is rather something like a format as used
> by the kpse* tools, e.g. as in `kpsewhich -progname latex -format tex
> article.cls'.

It is exactly "something like": we use it as a clue to detect what
kind of search would be wanted from kpathsea.  Maybe we should indeed
use progname instead of TEXINPUTS.latex, but I don't know what the
MikTeX substitutes will actually do in either case.

> But we are using it as file extension.

We are _mapping_ it to a file type and a set of extensions.

I am not saying this is pretty.  It is merely trying to use kpathsea
transparently without changing all the callers of the file search

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]