auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex 93d66d1 31/34: Adapt for Texinfo


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 93d66d1 31/34: Adapt for Texinfo mode
Date: Sun, 6 Jun 2021 11:40:06 -0400 (EDT)

branch: externals/auctex
commit 93d66d1a29847092dc136444d4dbc38021634e16
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Adapt for Texinfo mode
    
    * tex.el (TeX-local-master-p): Just look into
    `file-local-variables-alist' to return correct value even in TeXinfo
    mode.  This fixes bug#33227 as well.
---
 tex.el | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tex.el b/tex.el
index d7eca44..d964940 100644
--- a/tex.el
+++ b/tex.el
@@ -2488,11 +2488,7 @@ Get `major-mode' from master file and enable it."
 (defun TeX-local-master-p ()
   "Return non-nil if there is a `TeX-master' entry in local variables spec.
 Return nil otherwise."
-  (save-excursion
-    ;; XXX: Checking -*- line necessary as well?
-    (goto-char (point-max))
-    (search-backward "\n\^L" (max (- (point-max) 3000) (point-min)) 'move)
-    (re-search-forward "^%+ *TeX-master:" nil t)))
+  (assq 'TeX-master file-local-variables-alist))
 
 ;;; Style Paths
 




reply via email to

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