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  4c0d15018aaefe8802a89d4e557938e3af797065 (commit)
      from  1855efd20a81cfaac57218b13e8d8013b8a69bfd (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 4c0d15018aaefe8802a89d4e557938e3af797065
Author: Tassilo Horn <[email protected]>
Date:   Wed Jun 17 18:05:43 2020 +0200

    Don't call TeX-remove-style in TeX-arg-document.
    
    * latex.el (TeX-arg-document): Don't call TeX-arg-document.

diff --git a/latex.el b/latex.el
index 7701eb3..db0af47 100644
--- a/latex.el
+++ b/latex.el
@@ -2303,8 +2303,8 @@ OPTIONAL and IGNORE are ignored."
                    (not (y-or-n-p "Find class yourself? "))
                  TeX-arg-input-file-search)
                (prog2
-                 (message "Searching for LaTeX classes...")
-                 (TeX-search-files-by-type 'texinputs 'global t t)
+                   (message "Searching for LaTeX classes...")
+                   (TeX-search-files-by-type 'texinputs 'global t t)
                  (message "Searching for LaTeX classes...done"))
              LaTeX-style-list)))
     (setq style (completing-read
@@ -2340,11 +2340,7 @@ OPTIONAL and IGNORE are ignored."
                          (list (cons style opts)))))
     (insert TeX-grop style TeX-grcl))
 
-  ;; remove old information
-  (TeX-remove-style)
-
-  ;; defined in individual style hooks
-  (TeX-update-style)
+  (TeX-update-style t)
   (run-hooks 'TeX-after-document-hook))
 
 (defvar LaTeX-after-usepackage-hook nil

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

Summary of changes:
 latex.el | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

_______________________________________________
auctex-diffs mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to