[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 6ec80c4a3c004995850dd

From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 6ec80c4a3c004995850dda430f8348290f510fda
Date: Fri, 8 Jan 2021 17:21:31 -0500 (EST)

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  6ec80c4a3c004995850dda430f8348290f510fda (commit)
      from  73e90bad58f6f274ab0728f148e93082cb335767 (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 6ec80c4a3c004995850dda430f8348290f510fda
Author: Tassilo Horn <>
Date:   Fri Jan 8 23:20:15 2021 +0100

    Fix error reported in <> on
    * style/polyglossia.el (LaTeX-polyglossia-active-languages): Don't use
    add-to-list on lexical variable.

diff --git a/style/polyglossia.el b/style/polyglossia.el
index 64b1bba..36ec765 100644
--- a/style/polyglossia.el
+++ b/style/polyglossia.el
@@ -141,7 +141,10 @@ The last language is the default one."
        (setq default (or (string-equal "defaultlanguage" (nth 1 elt))
                          (string-equal "mainlanguage" (nth 1 elt))))
        ;; Append the language to the list if it's the default one.
-       (add-to-list 'active-languages (car elt) default))
+       (if default
+           (setq active-languages (append active-languages
+                                          (list (car elt))))
+         (push active-languages (car elt))))


Summary of changes:
 style/polyglossia.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


reply via email to

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