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

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

[elpa] elpa 43cbc5f 04/35: Remove support to "Master:" line


From: Tassilo Horn
Subject: [elpa] elpa 43cbc5f 04/35: Remove support to "Master:" line
Date: Sun, 31 Jan 2016 16:05:33 +0000

branch: elpa
commit 43cbc5f73e42f72a3bb0816a4ab07f66a7ba93c8
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Remove support to "Master:" line
    
    * tex.el (TeX-convert-master): Remove now unused variable.
    (TeX-master-file): Remove support to "Master:" line and update
    documentation accordingly.
---
 tex.el |   21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)

diff --git a/tex.el b/tex.el
index ce0c344..46196a7 100644
--- a/tex.el
+++ b/tex.el
@@ -2210,10 +2210,6 @@ this variable to \"<none>\"."
   :group 'TeX-command
   :type 'regexp)
 
-(defvar TeX-convert-master t
-  "*If not nil, automatically convert ``Master:'' lines to file variables.
-This will be done when AUCTeX first try to use the master file.")
-
 ;; Can be let-bound temporarily in order to inhibit the master file question
 ;; by using its value instead in case `TeX-master' is nil or 'shared.
 (defvar TeX-transient-master nil)
@@ -2269,10 +2265,7 @@ If optional second argument NONDIRECTORY is non-nil, do 
not include
 the directory.
 
 If optional third argument ASK is non-nil, ask the user for the
-name of master file if it cannot be determined otherwise.
-
-Currently it will check for the presence of a ``Master:'' line in
-the beginning of the file, but that feature will be phased out."
+name of master file if it cannot be determined otherwise."
   (interactive)
   (if (eq extension t)
       (setq extension TeX-default-extension))
@@ -2319,18 +2312,6 @@ the beginning of the file, but that feature will be 
phased out."
         ;; We might already know the name.
         ((or (eq TeX-master t) (stringp TeX-master)) TeX-master)
 
-        ;; Support the ``Master:'' line (under protest!)
-        ((re-search-forward
-          "^%% *[Mm]aster:?[ \t]*\\([^ \t\n]+\\)" 500 t)
-         (setq TeX-master
-               (TeX-strip-extension (TeX-match-buffer 1)
-                                    (list TeX-default-extension)))
-         (if TeX-convert-master
-             (progn
-               (beginning-of-line)
-               (kill-line 1)
-               (TeX-add-local-master))))
-
         ;; Ask the user (but add it as a local variable).
         (ask (TeX-master-file-ask)))))
 



reply via email to

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