[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 4004dc6b8f 09/23: Simplify the function `LaTeX-a
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 4004dc6b8f 09/23: Simplify the function `LaTeX-array-update-column-letters' |
Date: |
Thu, 20 Oct 2022 14:53:19 -0400 (EDT) |
branch: externals/auctex
commit 4004dc6b8f61d45ebdc9dc750e25c6fe024b855e
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Simplify the function `LaTeX-array-update-column-letters'
* style/array.el (LaTeX-array-update-column-letters): Simplify by
using seq-functions. Fix docstring.
---
style/array.el | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/style/array.el b/style/array.el
index be7baf3610..b564e055e3 100644
--- a/style/array.el
+++ b/style/array.el
@@ -1,6 +1,6 @@
;;; array.el --- AUCTeX style for `array.sty' -*- lexical-binding: t; -*-
-;; Copyright (C) 2013-2021 Free Software Foundation, Inc.
+;; Copyright (C) 2013-2022 Free Software Foundation, Inc.
;; Author: Mads Jensen <mje@inducks.org>
;; Maintainer: auctex-devel@gnu.org
@@ -56,16 +56,11 @@ package.")
(LaTeX-array-update-column-letters)))
(defun LaTeX-array-update-column-letters ()
- "Update and uniquify the value of `LaTeX-array-column-letters'
-and make it buffer local. "
+ "Update and uniquify the local value of `LaTeX-array-column-letters'."
(set (make-local-variable 'LaTeX-array-column-letters)
- (mapconcat #'identity
- (TeX-delete-duplicate-strings
- (split-string
- (concat LaTeX-array-column-letters
- (mapconcat #'car (LaTeX-array-newcolumntype-list)
""))
- "" t))
- "")))
+ (let* ((newtypes (mapconcat #'car (LaTeX-array-newcolumntype-list) ""))
+ (alltypes (concat LaTeX-array-column-letters newtypes)))
+ (seq-concatenate 'string (seq-uniq alltypes #'=)))))
(add-hook 'TeX-auto-prepare-hook #'LaTeX-array-auto-prepare t)
(add-hook 'TeX-auto-cleanup-hook #'LaTeX-array-auto-cleanup t)
- [elpa] externals/auctex 99470f080d 06/23: Close over list-strings from outer scope., (continued)
- [elpa] externals/auctex 99470f080d 06/23: Close over list-strings from outer scope., Tassilo Horn, 2022/10/20
- [elpa] externals/auctex d22387d0d2 23/23: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 4a843073c5 22/23: Don't use `eval' on code, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 1e2e097106 12/23: * style/l3doc.el ("l3doc"): Fix entry for the "env" macro., Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 9fc41106dc 17/23: Add new style/parskip.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 4c26ef9b0b 21/23: ; Delete ineffective string escapes, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 07a8a3cf98 13/23: ; Use `TeX-dialect' in style/tcolorboxlib-theorems.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 1e59481512 18/23: Improve interaction between fancyvrb.el and fvextra.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex ae2922ce76 14/23: Update style/amsart.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex b302fdce1d 20/23: Add missing argument for `TeX-argument-prompt', Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 4004dc6b8f 09/23: Simplify the function `LaTeX-array-update-column-letters',
Tassilo Horn <=
- [elpa] externals/auctex e2ce8ae4db 19/23: Improve style/fvextra.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex d58f4fdd7e 05/23: Don't use RESULT arg of dolist., Tassilo Horn, 2022/10/20