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. a9eb15592ff350e56ea1b


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. a9eb15592ff350e56ea1b172805e1d5449a572b3
Date: Fri, 17 May 2019 09:35:38 -0400 (EDT)

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  a9eb15592ff350e56ea1b172805e1d5449a572b3 (commit)
      from  c92251cb8dca5a35c818b0ce903277dd36e893ec (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 a9eb15592ff350e56ea1b172805e1d5449a572b3
Author: Ikumi Keita <address@hidden>
Date:   Fri May 17 22:20:12 2019 +0900

    Fix regression
    
    * latex.el (LaTeX-arg-usepackage-insert, LaTeX-arg-usepackage): Move
    `TeX-run-style-hooks' from `LaTeX-arg-usepackage' to
    `LaTeX-arg-usepackage-insert'.  Due to my commit "Defer running style
    hook until options are given actually", style hooks associated with
    \usepackage were not run when the document is newly created with
    `LaTeX-env-document'.

diff --git a/latex.el b/latex.el
index 064199d..dd6c398 100644
--- a/latex.el
+++ b/latex.el
@@ -2352,7 +2352,8 @@ of the options, nil otherwise."
            packages))
     (insert LaTeX-optop options LaTeX-optcl))
   (insert TeX-grop (mapconcat 'identity packages ",") TeX-grcl)
-  (run-hooks 'LaTeX-after-usepackage-hook))
+  (run-hooks 'LaTeX-after-usepackage-hook)
+  (apply #'TeX-run-style-hooks packages))
 
 (defun LaTeX-arg-usepackage (_optional)
   "Insert arguments to usepackage.
@@ -2360,8 +2361,7 @@ OPTIONAL is ignored."
   (let* ((packages-options (LaTeX-arg-usepackage-read-packages-with-options))
         (packages (car packages-options))
         (options (cdr packages-options)))
-    (LaTeX-arg-usepackage-insert packages options)
-    (apply #'TeX-run-style-hooks packages)))
+    (LaTeX-arg-usepackage-insert packages options)))
 
 (defun LaTeX-insert-usepackages ()
   "Prompt for the insertion of usepackage macros until empty

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

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


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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