auctex-devel
[Top][All Lists]
Advanced

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

Re: Fix for TeX-local-master-p


From: Arash Esbati
Subject: Re: Fix for TeX-local-master-p
Date: Wed, 02 Jun 2021 12:06:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50

Hi Keita,

Ikumi Keita <ikumi@ikumi.que.jp> writes:

> Now that all emacsens supported by AUCTeX have
> `file-local-variables-alist', how about the attached patch? It fixes
> bug#33227[1] also.
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33227
>
> Best,
> Ikumi Keita
>
> diff --git a/tex.el b/tex.el
> index 12d401dd..ca6eb1bb 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

LGTM, please go ahead and install.  Thanks.

Best, Arash



reply via email to

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