auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 7fc63f1deeeb1ef76ba28


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 7fc63f1deeeb1ef76ba2806fa4baf972ba44befc
Date: Sat, 14 May 2016 11:41:26 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  7fc63f1deeeb1ef76ba2806fa4baf972ba44befc (commit)
      from  7b41d773d53895b0966e3efeab03075e867a5755 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7fc63f1deeeb1ef76ba2806fa4baf972ba44befc
Author: Ikumi Keita <address@hidden>
Date:   Fri May 13 22:28:59 2016 +0900

    Tweak mode name only when file local variable is enabled.
    
    * tex-jp.el (japanese-plain-tex-mode-initialization)
      (japanese-latex-mode-initialization): Tweak mode name only
      when `enable-local-variables' is non-nil.
    
    Signed-off-by: Mosè Giordano <address@hidden>

diff --git a/tex-jp.el b/tex-jp.el
index 368f62d..57b5de4 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -406,9 +406,10 @@ Set `japanese-TeX-mode' to t, and enter 
`TeX-plain-tex-mode'."
 
     ;; For the intent of the following lines, see the comments below
     ;; in `japanese-latex-mode-initialization'.
-    (setq major-mode 'japanese-plain-tex-mode)
-    (add-hook 'hack-local-variables-hook 'japanese-TeX-reset-mode-name
-             nil t)))
+    (when enable-local-variables
+      (setq major-mode 'japanese-plain-tex-mode)
+      (add-hook 'hack-local-variables-hook 'japanese-TeX-reset-mode-name
+               nil t))))
 
 (add-hook 'plain-TeX-mode-hook 'japanese-plain-tex-mode-initialization)
 
@@ -456,9 +457,10 @@ Set `japanese-TeX-mode' to t, and enter `TeX-latex-mode'."
     ;; Thus we temporarily set `major-mode' to `japanese-latex-mode'
     ;; here and plan to reset it to `latex-mode' after
     ;; `hack-local-variables' is done.
-    (setq major-mode 'japanese-latex-mode)
-    (add-hook 'hack-local-variables-hook 'japanese-TeX-reset-mode-name
-             nil t)))
+    (when enable-local-variables
+      (setq major-mode 'japanese-latex-mode)
+      (add-hook 'hack-local-variables-hook 'japanese-TeX-reset-mode-name
+               nil t))))
 
 (add-hook 'LaTeX-mode-hook 'japanese-latex-mode-initialization)
 

-----------------------------------------------------------------------

Summary of changes:
 tex-jp.el |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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