branch: externals/auctex commit c4cb166fe1624545786a9f82f2385ba6a70d4384 Author: Mosè Giordano <m...@gnu.org> Commit: Mosè Giordano <m...@gnu.org>
Add style/ directory to TeX-style-path for tests * tests/latex/latex-test.el: Add our "style/" directory `TeX-style-path' to make it possible to load style files inside tests. --- tests/latex/latex-test.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/latex/latex-test.el b/tests/latex/latex-test.el index 28af7b5..e8d8900 100644 --- a/tests/latex/latex-test.el +++ b/tests/latex/latex-test.el @@ -24,6 +24,13 @@ (require 'ert) (require 'latex) +;; Add the "style/" directory to `TeX-style-path', +;; so we can load style files inside tests. +(add-to-list 'TeX-style-path + (expand-file-name "../../style" + (when load-file-name + (file-name-directory load-file-name)))) + (defun AUCTeX-set-ert-path (&rest sym-val) "Set first element of SYM-VAL to the next one, and so on.