branch: externals/auctex commit b01f2f27333f59269a55621bfcd0e7eef5d2f7e4 Author: Ikumi Keita <ik...@ikumi.que.jp> Commit: Ikumi Keita <ik...@ikumi.que.jp>
Add style path explicitly * tests/japanese/error-parsing.el (): * tests/japanese/parse-timing.el (): * tests/japanese/preview-latex.el (): Add "style" subdirectory in the repository to `TeX-style-path' so we can load style files inside tests. --- tests/japanese/error-parsing.el | 7 +++++++ tests/japanese/parse-timing.el | 7 +++++++ tests/japanese/preview-latex.el | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/tests/japanese/error-parsing.el b/tests/japanese/error-parsing.el index c2f8f90..571e0a6 100644 --- a/tests/japanese/error-parsing.el +++ b/tests/japanese/error-parsing.el @@ -26,6 +26,13 @@ (setq japanese-TeX-error-messages t) (require 'tex-jp) +;; 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)))) + (ert-deftest japanese-TeX-help-message () "Test the fallback behavior of `TeX-help-error'. It should pick up error messages from the log file even if diff --git a/tests/japanese/parse-timing.el b/tests/japanese/parse-timing.el index c9f5243..800428a 100644 --- a/tests/japanese/parse-timing.el +++ b/tests/japanese/parse-timing.el @@ -33,6 +33,13 @@ (require 'ert) (require 'tex-jp) +;; 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. diff --git a/tests/japanese/preview-latex.el b/tests/japanese/preview-latex.el index 4fac047..5885456 100644 --- a/tests/japanese/preview-latex.el +++ b/tests/japanese/preview-latex.el @@ -26,6 +26,13 @@ (require 'tex-jp)) (require 'preview) +;; 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.