Dear AUCTeX devs,

I searched in this mailing list's archives but couldn't find a previous
mention of this suggestion; sorry if it's already been discussed. The
ffap-latex-mode function already does some non-trivial things, like running
kpsewhich to locate .cls or .sty file when point is in a \documentclass or
\usepackage command. I was wondering if it would be possible to leverage
AUCTeX to further improve its handling of where to search when point is in
an \input command. LaTeX looks in paths specified by \input@path, which the
author may (re)define or prepend/append to (see e.g.
https://tex.stackexchange.com/a/79060/34063 ). Is it possible to parse the
document for such (re)definitions, and provide additional paths to
ffap-latex-mode via some defadvice? Or is this too complicated to do
robustly?

Best,
Leo

Reply via email to