emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex b01f2f2 02/15: Add style path explicitly


From: Tassilo Horn
Subject: [elpa] externals/auctex b01f2f2 02/15: Add style path explicitly
Date: Wed, 6 Dec 2017 09:48:32 -0500 (EST)

branch: externals/auctex
commit b01f2f27333f59269a55621bfcd0e7eef5d2f7e4
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>

    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.
 



reply via email to

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