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. 3c8e58307df2c5587a33b


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 3c8e58307df2c5587a33b431c70f8bcf36f1e47b
Date: Tue, 11 May 2021 08:31:09 -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  3c8e58307df2c5587a33b431c70f8bcf36f1e47b (commit)
      from  9f7bddc45fa97ddbacb406c970f2eb2330349369 (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 3c8e58307df2c5587a33b431c70f8bcf36f1e47b
Author: Arash Esbati <arash@gnu.org>
Date:   Tue May 11 14:29:46 2021 +0200

    Introduce new variable `LaTeX-global-package-files'
    
    * latex.el (LaTeX-global-package-files): New variable holding
    LaTeX package files.
    (LaTeX-arg-usepackage-read-packages-with-options): Set and use it
    instead of `TeX-global-input-files'.
    
    * tex.el (TeX-normal-mode): Reset also
    `LaTeX-global-package-files' when invoked with ARG.
    Silence the compiler.

diff --git a/latex.el b/latex.el
index f9cfdeb..1f20960 100644
--- a/latex.el
+++ b/latex.el
@@ -2424,6 +2424,11 @@ To insert a hook here, you must insert it in the 
appropiate style file.")
 Initialized once at the first time you prompt for an input file.
 May be reset with `\\[universal-argument] \\[TeX-normal-mode]'.")
 
+(defvar LaTeX-global-package-files nil
+  "List of the LaTeX package files.
+Initialized once at the first time you prompt for a LaTeX package.
+May be reset with `\\[universal-argument] \\[TeX-normal-mode]'.")
+
 (defun LaTeX-arg-usepackage-read-packages-with-options ()
   "Read the packages and the options for the usepackage macro.
 
@@ -2433,18 +2438,18 @@ of the options, nil otherwise."
   (let* ((TeX-file-extensions '("sty"))
          (crm-separator ",")
          packages var options)
-    (unless TeX-global-input-files
+    (unless LaTeX-global-package-files
       (if (if (eq TeX-arg-input-file-search 'ask)
               (not (y-or-n-p "Find packages yourself? "))
             TeX-arg-input-file-search)
           (progn
             (message "Searching for LaTeX packages...")
-            (setq TeX-global-input-files
+            (setq LaTeX-global-package-files
                   (mapcar #'list (TeX-search-files-by-type
-                                 'texinputs 'global t t)))
+                                  'texinputs 'global t t)))
             (message "Searching for LaTeX packages...done"))))
     (setq packages (TeX-completing-read-multiple
-                    "Packages: " TeX-global-input-files))
+                    "Packages: " LaTeX-global-package-files))
     ;; Clean up hook before use in `LaTeX-arg-usepackage-insert'.
     (setq LaTeX-after-usepackage-hook nil)
     (mapc #'TeX-load-style packages)
diff --git a/tex.el b/tex.el
index 3b07c68..e9b8798 100644
--- a/tex.el
+++ b/tex.el
@@ -85,6 +85,7 @@
 (defvar BibTeX-global-style-files)
 (defvar LaTeX-default-verb-delimiter)
 (defvar LaTeX-global-class-files)
+(defvar LaTeX-global-package-files)
 (defvar LaTeX-optcl)
 (defvar LaTeX-optop)
 (defvar TeX-Biber-global-files)
@@ -5980,6 +5981,7 @@ With optional argument ARG, also reload the style hooks."
             TeX-Biber-global-files nil
             TeX-global-input-files nil
             LaTeX-global-class-files nil
+            LaTeX-global-package-files nil
             LaTeX-includegraphics-global-files nil))
   (let ((TeX-auto-save t))
     (if (buffer-modified-p)

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

Summary of changes:
 latex.el | 13 +++++++++----
 tex.el   |  2 ++
 2 files changed, 11 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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