auctex-devel
[Top][All Lists]
Advanced

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

Provide advice to ffap (find-file-at-point) from \input@path?


From: Leo Stein
Subject: Provide advice to ffap (find-file-at-point) from \input@path?
Date: Fri, 23 Aug 2024 12:30:57 -0500

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

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