branch: externals/auctex
commit a8dba19dbcd302e51d25ec7db5699d458767b3a8
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    Fix addition of key=val's
    
    * style/fvextra.el (LaTeX-fvextra-update-key-val): Fix addition of
    key=val's to `LaTeX-fancyvrb-key-val-options-local'.
---
 style/fvextra.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/style/fvextra.el b/style/fvextra.el
index 18315d4..6ca2341 100644
--- a/style/fvextra.el
+++ b/style/fvextra.el
@@ -82,10 +82,9 @@
        (assq-delete-all (car (assoc "numbers" 
LaTeX-fancyvrb-key-val-options-local))
                         LaTeX-fancyvrb-key-val-options-local))
   ;; Add the key with "both" value:
-  (setq LaTeX-fancyvrb-key-val-options-local
-       (add-to-list 'LaTeX-fancyvrb-key-val-options-local
-                    '("numbers" ("none" "left" "right" "both"))))
-
+  (add-to-list 'LaTeX-fancyvrb-key-val-options-local
+              '("numbers" ("none" "left" "right" "both")))
+  ;; Add color values to resp. keys:
   (when (or (member "xcolor" (TeX-style-list))
            (member "color" (TeX-style-list)))
     (let* ((colorcmd (if (member "xcolor" (TeX-style-list))

Reply via email to