[Top][All Lists]

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 4a114d1efd5a4ec4ad576

From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 4a114d1efd5a4ec4ad576a5a952e71b06addb5a1
Date: Tue, 19 Jan 2021 09:02:44 -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  4a114d1efd5a4ec4ad576a5a952e71b06addb5a1 (commit)
      from  8aa53811454e6b80d1544ac350b1928f3ab2f37f (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 4a114d1efd5a4ec4ad576a5a952e71b06addb5a1
Author: Tassilo Horn <>
Date:   Tue Jan 19 15:00:58 2021 +0100

    Fix adding duplicates to TeX-auto-regexp-list
    * tex.el (TeX-auto-add-regexp): Check membership with `member' instead
    `memq' because the latter won't work with list-valued entries.

diff --git a/tex.el b/tex.el
index 915702f..671d287 100644
--- a/tex.el
+++ b/tex.el
@@ -4138,7 +4138,7 @@ If SKIP is not-nil, don't insert code for SKIP."
   "Add REGEXP to `TeX-auto-regexp-list' if not already a member."
   (if (symbolp TeX-auto-regexp-list)
       (setq TeX-auto-regexp-list (symbol-value TeX-auto-regexp-list)))
-  (or (memq regexp TeX-auto-regexp-list)
+  (or (member regexp TeX-auto-regexp-list)
       (setq TeX-auto-regexp-list (cons regexp TeX-auto-regexp-list))))
 (defvar TeX-auto-empty-regexp-list


Summary of changes:
 tex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


reply via email to

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