auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 45d3a116720b433170496


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 45d3a116720b433170496c159b0f995a9c41e595
Date: Thu, 2 Sep 2021 11:09:03 -0400 (EDT)

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  45d3a116720b433170496c159b0f995a9c41e595 (commit)
      from  c6350aae1ca4befcdde2289d005e193a63b51050 (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 45d3a116720b433170496c159b0f995a9c41e595
Author: Arash Esbati <arash@gnu.org>
Date:   Thu Sep 2 17:08:03 2021 +0200

    ; Fix unbalanced parentheses
    
    * style/xparse.el (LaTeX-xparse-macro-parse): Add missing
    parentheses.
    Don't use `copy-sequence' since `reverse' already returns a copy
    of the list.

diff --git a/style/xparse.el b/style/xparse.el
index 314938e..1f197f9 100644
--- a/style/xparse.el
+++ b/style/xparse.el
@@ -221,7 +221,7 @@ TYPE is one of the symbols mac or env."
                     (assoc-delete-all name LaTeX-environment-list)))
             (LaTeX-add-environments `(,name
                                       LaTeX-env-args
-                                      ,@(reverse (copy-sequence args)))))
+                                      ,@(reverse args))))
         ;; Parsed macros: If we are Renew'ing or Delare'ing, we delete
         ;; the macros first from `TeX-symbol-list' before adding the
         ;; new ones.  We have to sort the value of `TeX-symbol-list'
@@ -232,18 +232,18 @@ TYPE is one of the symbols mac or env."
                 (assoc-delete-all name TeX-symbol-list))
           (when opt-star
             (setq TeX-symbol-list
-                  (assoc-delete-all (concat name "*" TeX-symbol-list))))
+                  (assoc-delete-all (concat name "*") TeX-symbol-list)))
           (when opt-token
             (setq TeX-symbol-list
-                  (assoc-delete-all (concat name opt-token TeX-symbol-list)))))
+                  (assoc-delete-all (concat name opt-token) TeX-symbol-list))))
         (TeX-add-symbols (cons name
-                               (reverse (copy-sequence args))))
+                               (reverse args)))
         (when opt-star
           (TeX-add-symbols (cons (concat name "*")
-                                 (reverse (copy-sequence args)))))
+                                 (reverse args))))
         (when opt-token
           (TeX-add-symbols (cons (concat name opt-token)
-                                 (reverse (copy-sequence args)))))))))
+                                 (reverse args))))))))
 
 (defun LaTeX-xparse-auto-prepare ()
   "Clear various `LaTeX-auto-xparse-*' variables before parsing."

-----------------------------------------------------------------------

Summary of changes:
 style/xparse.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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