auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex 6ec80c4 1/3: Fix error reported i


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 6ec80c4 1/3: Fix error reported in <address@hidden> on address@hidden
Date: Fri, 8 Jan 2021 17:34:58 -0500 (EST)

branch: externals/auctex
commit 6ec80c4a3c004995850dda430f8348290f510fda
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    Fix error reported in <87o8hzto7r.fsf@fastmail.fm> on auctex@gnu.org
    
    * style/polyglossia.el (LaTeX-polyglossia-active-languages): Don't use
    add-to-list on lexical variable.
---
 style/polyglossia.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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))))
      LaTeX-polyglossia-lang-list)
     active-languages))
 




reply via email to

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