branch: master
commit c2015449ec1e16cddb44447097547526c75ef174
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    Consider class/packages without options as well
    
    * latex.el (LaTeX-auto-cleanup): Add class and packages without
    options also to `LaTeX-provided-class-options' and
    `LaTeX-provided-package-options' respectively.  Add empty string
    to the variables when no options are given.
---
 latex.el | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/latex.el b/latex.el
index ba759291..da202219 100644
--- a/latex.el
+++ b/latex.el
@@ -2168,9 +2168,8 @@ TYPE is one of the symbols mac or env."
               (add-to-list 'TeX-auto-file elt t)
               ;; Append to `LaTeX-provided-package-options' the name of the
               ;; package and the options provided to it at load time.
-              (unless (equal options '(""))
-                (TeX-add-to-alist 'LaTeX-provided-package-options
-                                  (list (cons elt options)))))
+              (TeX-add-to-alist 'LaTeX-provided-package-options
+                                (list (cons elt options))))
           ;; And a special "art10" style file combining style and size.
           (add-to-list 'TeX-auto-file style t)
           (add-to-list 'TeX-auto-file
@@ -2201,9 +2200,8 @@ TYPE is one of the symbols mac or env."
                               (t
                                "10")))
                        t)
-          (unless (equal options '(""))
-            (TeX-add-to-alist 'LaTeX-provided-class-options
-                              (list (cons style options)))))
+          (TeX-add-to-alist 'LaTeX-provided-class-options
+                            (list (cons style options))))
 
         ;; The third argument if "class" indicates LaTeX2e features.
         (cond ((or (string-equal class "class")

Reply via email to