Mosè Giordano <[email protected]> writes: > 2015-05-02 21:04 GMT+02:00 David Kastrup <[email protected]>: >> Mosè Giordano <[email protected]> writes: >> >>> 2015-05-02 8:53 GMT+02:00 Tassilo Horn <[email protected]>: >>>> Mosè Giordano <[email protected]> writes: >>>> >>>>> Reading more thoroughly `TeX-search-files-kpathsea' I see that >>>>> `TeX-kpathsea-path-delimiter' is set after getting the output of a >>>>> `kpsewhich' call, instead we need the separator before calling it. >>>> >>>> Exactly. >>>> >>>>> The kpathsea manual says [1] the separator is ";" on Windows, ":" >>>>> otherwise, >>>> >>>> That's what I've also read. >>> >>> How about `path-separator'? >>> >>>>> so we could set the default value of `TeX-kpathsea-path-delimiter' >>>>> looking at Emacs `system-type' variable, instead of the t (autodect), >>>>> what do you think? >>>> >>>> I think so, although I guess there has be a reason for this >>>> auto-detection at some point in time. >>> >>> David you introduced `TeX-kpathsea-path-delimiter', could you please >>> explain why that autodetect mechanism is better than using >>> `path-separator'? >> >> Why would Kpathsea heed an Emacs variable? > > Not that kpathsea should care about an Emacs variable, but _if_ the > separator is chosen with the same logic in both programs that would be > fine. Anyway, we need a method to guess the correct separator before > calling kpsewhich, see `TeX-parse-path' and `TeX-tree-expand'. In the > former AUCTeX looks at the structure of an environment variable, in > the latter to the value of `system-type'.
Well, it appears to me like one should be able to integrate those with the TeX-kpathsea-path-delimiter heuristic. At the time they need to make a decision, they have a string available. -- David Kastrup _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
