[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 05cd0440c5 02/48: Use `TeX-arg-completing-read-m
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 05cd0440c5 02/48: Use `TeX-arg-completing-read-multiple' |
Date: |
Fri, 18 Nov 2022 14:27:41 -0500 (EST) |
branch: externals/auctex
commit 05cd0440c5d72ffaf98f3b76c0cae124a420cc10
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Use `TeX-arg-completing-read-multiple'
* style/babel.el ("babel"):
* style/biblatex.el ("biblatex"):
* style/doc.el ("doc"):
* style/enumitem.el ("enumitem"):
* style/ntheorem.el ("ntheorem"):
* style/thmtools.el ("thmtools"):
* style/titleps.el ("titleps"):
* style/xcolor.el ("xcolor"): Use
`TeX-arg-completing-read-multiple' instead of `TeX-arg-eval' and
`mapconcat ...' combination.
---
style/babel.el | 21 ++++++---------------
style/biblatex.el | 8 +++-----
style/doc.el | 7 ++-----
style/enumitem.el | 20 +++++++++-----------
style/fontaxes.el | 12 +++++-------
style/ntheorem.el | 6 ++----
style/thmtools.el | 32 +++++++++++++++-----------------
style/titleps.el | 14 ++++----------
style/xcolor.el | 10 ++++------
9 files changed, 50 insertions(+), 80 deletions(-)
diff --git a/style/babel.el b/style/babel.el
index 1c89e8ffab..c58ea9fab6 100644
--- a/style/babel.el
+++ b/style/babel.el
@@ -286,11 +286,8 @@
'("useshorthands" "Character")
'("useshorthands*" "Character")
'("defineshorthand"
- [TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt t nil "Language(s)")
- (LaTeX-babel-active-languages))
- ","]
+ [TeX-arg-completing-read-multiple (LaTeX-babel-active-languages)
+ "Language(s)"]
t nil)
'("languageshorthands" TeX-arg-babel-lang)
'("babelshorthand" "Short hand")
@@ -304,11 +301,8 @@
;; 1.14 Selecting fonts
'("babelfont"
- [TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt t nil "Language(s)")
- LaTeX-babel-language-list)
- ","]
+ [TeX-arg-completing-read-multiple LaTeX-babel-language-list
+ "Language(s)"]
(TeX-arg-eval let ((fontfam (completing-read
(TeX-argument-prompt nil nil "font family")
'("rm" "sf" "tt"))))
@@ -341,11 +335,8 @@
(TeX-arg-completing-read ("soft" "hard" "repeat" "nobreak" "empty")
"Type/Text"))
'("babelhyphenation"
- [TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt nil nil "Language(s)")
- LaTeX-babel-language-list)
- ","]
+ [TeX-arg-completing-read-multiple LaTeX-babel-language-list
+ "Language(s)"]
t)
;; 1.23 Selecting scripts
diff --git a/style/biblatex.el b/style/biblatex.el
index 47cdb16f54..3254ce8566 100644
--- a/style/biblatex.el
+++ b/style/biblatex.el
@@ -275,9 +275,8 @@ for citation keys."
;;; Global Customization
;; Setting Package Options
'("ExecuteBibliographyOptions"
- [TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- "Entry type: " LaTeX-biblatex-entrytype) ","]
+ [TeX-arg-completing-read-multiple LaTeX-biblatex-entrytype
+ "Entry type"]
(TeX-arg-key-val LaTeX-biblatex-executebibliographyoptions-options))
;;; Bibliography Commands
;; Resources
@@ -328,8 +327,7 @@ for citation keys."
'("defbibcheck" "Name" t)
;; Dynamic Entry Sets
'("defbibentryset" "Set"
- (TeX-arg-eval mapconcat #'identity (TeX-completing-read-multiple
- "Keys: " (LaTeX-bibitem-list)) ","))
+ (TeX-arg-completing-read-multiple (LaTeX-bibitem-list) "Keys"))
;;; Citation Commands
'("cite" (TeX-arg-conditional TeX-arg-cite-note-p
(["Prenote"] ["Postnote"]) ()) TeX-arg-cite)
diff --git a/style/doc.el b/style/doc.el
index 892e578616..d57e1e05b1 100644
--- a/style/doc.el
+++ b/style/doc.el
@@ -275,11 +275,8 @@ percent sign at the beginning of a line before
(format "%s" file)))))
;; 2.2 Package options
- '("SetupDoc" (TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt nil nil "Options")
- LaTeX-doc-package-options)
- ","))
+ '("SetupDoc" (TeX-arg-completing-read-multiple LaTeX-doc-package-options
+ "Options"))
;; 2.4 Describing the usage of macros and environments
'("DescribeMacro"
diff --git a/style/enumitem.el b/style/enumitem.el
index 51106b4ccc..4e0e929a56 100644
--- a/style/enumitem.el
+++ b/style/enumitem.el
@@ -430,17 +430,15 @@ provided. OPTIONAL is ignored."
'("setlist" LaTeX-arg-enumitem-setlist)
;; \setlist*[<names,levels>]{<key-vals>}
- '("setlist*"
- [TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt t nil "Environment(s), level(s)")
- (append
- (when (LaTeX-provided-package-options-member "enumitem"
-
"includedisplayed")
- '("trivlist"))
- (mapcar #'car (LaTeX-enumitem-newlist-list))
- '("1" "2" "3" "4")))
- ","]
+ `("setlist*"
+ [TeX-arg-completing-read-multiple
+ ,(lambda () (append
+ (when (LaTeX-provided-package-options-member "enumitem"
+
"includedisplayed")
+ '("trivlist"))
+ (mapcar #'car (LaTeX-enumitem-newlist-list))
+ '("1" "2" "3" "4")))
+ "Environment(s), level(s)"]
(TeX-arg-key-val (LaTeX-enumitem-key-val-options))) )
;; General commands:
diff --git a/style/fontaxes.el b/style/fontaxes.el
index da05bb5b29..aebe4c6e0a 100644
--- a/style/fontaxes.el
+++ b/style/fontaxes.el
@@ -57,13 +57,11 @@
;; Figure versions
'("figureversion"
- (TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- "Style, alignment: "
- '(("text") ("osf")
- ("lining") ("lf")
- ("tabular") ("tab")
- ("proportional") ("prop"))) ","))
+ (TeX-arg-completing-read-multiple ("text" "osf"
+ "lining" "lf"
+ "tabular" "tab"
+ "proportional" "prop")
+ "Style, alignment"))
'("txfigures" -1) ; style: text figures (osf)
'("lnfigures" -1) ; style: lining figures
'("tbfigures" -1) ; alignment: tabular figures
diff --git a/style/ntheorem.el b/style/ntheorem.el
index a487dfc821..aa28c31f88 100644
--- a/style/ntheorem.el
+++ b/style/ntheorem.el
@@ -324,10 +324,8 @@ make them available as new environments. Update
;; 2.4 Generating Theoremlists
'("listtheorems"
- (TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- "Lists: "
- (LaTeX-ntheorem-newtheorem-list)) ","))
+ (TeX-arg-completing-read-multiple (LaTeX-ntheorem-newtheorem-list)
+ "Lists"))
;; 2.4.2 Writing Extra Stuff to the Theorem File
'("addtheoremline"
diff --git a/style/thmtools.el b/style/thmtools.el
index d17b30eef2..4a1067b922 100644
--- a/style/thmtools.el
+++ b/style/thmtools.el
@@ -1,6 +1,6 @@
;;; thmtools.el --- AUCTeX style for `thmtools.sty' (v0.72) -*-
lexical-binding: t; -*-
-;; Copyright (C) 2018--2021 Free Software Foundation, Inc.
+;; Copyright (C) 2018--2022 Free Software Foundation, Inc.
;; Author: Arash Esbati <arash@gnu.org>
;; Maintainer: auctex-devel@gnu.org
@@ -277,22 +277,20 @@ RET in order to leave it empty.")
'("declaretheorem" LaTeX-arg-thmtools-declaretheorem)
'("listoftheorems" [ LaTeX-arg-thmtools-listoftheorems ])
- '("ignoretheorems"
- (TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt nil nil "Environment(s)")
- (append
- ;; check for \newtheorem from amsthm.sty:
- (when (and (fboundp 'LaTeX-amsthm-newtheorem-list)
- (LaTeX-amsthm-newtheorem-list))
- (mapcar #'car (LaTeX-amsthm-newtheorem-list)))
- ;; check for \newtheorem from ntheorem.sty:
- (when (and (fboundp 'LaTeX-ntheorem-newtheorem-list)
- (LaTeX-ntheorem-newtheorem-list))
- (mapcar #'car (LaTeX-ntheorem-newtheorem-list)))
- ;; thmtools version is called \declaretheorem:
- (mapcar #'car (LaTeX-thmtools-declaretheorem-list))))
- ","))
+ `("ignoretheorems"
+ (TeX-arg-completing-read-multiple
+ ,(lambda () (append
+ ;; check for \newtheorem from amsthm.sty:
+ (when (and (fboundp 'LaTeX-amsthm-newtheorem-list)
+ (LaTeX-amsthm-newtheorem-list))
+ (mapcar #'car (LaTeX-amsthm-newtheorem-list)))
+ ;; check for \newtheorem from ntheorem.sty:
+ (when (and (fboundp 'LaTeX-ntheorem-newtheorem-list)
+ (LaTeX-ntheorem-newtheorem-list))
+ (mapcar #'car (LaTeX-ntheorem-newtheorem-list)))
+ ;; thmtools version is called \declaretheorem:
+ (mapcar #'car (LaTeX-thmtools-declaretheorem-list))))
+ "Environment(s)"))
'("listtheoremname" 0))
;; Fontification
diff --git a/style/titleps.el b/style/titleps.el
index ad8646e059..67891035ce 100644
--- a/style/titleps.el
+++ b/style/titleps.el
@@ -107,18 +107,12 @@ Removal is based on the return value of function
'("setfoot*" 3)
'("settitlemarks"
- (TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt nil nil "Level names")
- (LaTeX-titleps-section-command-list))
- ","))
+ (TeX-arg-completing-read-multiple (LaTeX-titleps-section-command-list)
+ "Level names"))
'("settitlemarks"
- (TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt nil nil "Level names")
- (LaTeX-titleps-section-command-list))
- ","))
+ (TeX-arg-completing-read-multiple (LaTeX-titleps-section-command-list)
+ "Level names"))
'("headrule" 0)
'("setheadrule" "Thickness")
diff --git a/style/xcolor.el b/style/xcolor.el
index 455e886dc6..001f40866e 100644
--- a/style/xcolor.el
+++ b/style/xcolor.el
@@ -557,12 +557,10 @@ xcolor package.")
;; 2.6.4 Color testing
(LaTeX-add-environments
- '("testcolors" LaTeX-env-args
- [ TeX-arg-eval mapconcat #'identity
- (TeX-completing-read-multiple
- (TeX-argument-prompt t nil "Color models")
- (LaTeX-xcolor-color-models t))
- "," ] ))
+ `("testcolors" LaTeX-env-args
+ [TeX-arg-completing-read-multiple ,(lambda ()
+ (LaTeX-xcolor-color-models t))
+ "Color models"] ))
;; Fontification
(when (and (featurep 'font-latex)
- [elpa] externals/auctex ce15e3fd87 24/48: Extend Japanese TeX support, (continued)
- [elpa] externals/auctex ce15e3fd87 24/48: Extend Japanese TeX support, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 52a7f4050f 27/48: ; * doc/auctex.texi (Adding Environments): Adjust indentation., Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 42150568f1 06/48: Allow user to insert "$" (bug#57626), Tassilo Horn, 2022/11/18
- [elpa] externals/auctex cdf57fba58 11/48: * latex.el (TeX-arg-conditional): Declare 'indent'., Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 4eaed332ba 26/48: Add new hooks for inserting environments with arguments, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex d7e6fa0d41 05/48: Cleanup `TeX-insert-dollar', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 21e624026a 28/48: Improve support for TikZ, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex e53bb19a90 37/48: ; Recognize large arguments with many lines, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 9b365b7419 18/48: Simplify implementation of style/textpos.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 1f6e9e7e58 10/48: Update style/XCharter.el to package version 1.24, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 05cd0440c5 02/48: Use `TeX-arg-completing-read-multiple',
Tassilo Horn <=
- [elpa] externals/auctex 0c482642cc 32/48: Simplify implementation of style/currvita.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 615e12f650 42/48: Simplify implementation of style/tcolorbox.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex b9548da54a 38/48: Simplify implementation of style/tcolorboxlib-theorems.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 8e3137f641 15/48: Simplify implementation of style/titlesec.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 20cabef81f 20/48: ; Delete unnecessary `TeX-arg-string', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 49987f08dd 19/48: Provide completion candidates for `TeX-arg-length', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 52738d11b2 39/48: Remove entry in `LaTeX-completion-function-map-alist-keyval', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 8f70cd5211 14/48: Simplify implementation of style/ulem.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex d5ff42e0bd 34/48: Simplify implementation of style/enumitem.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex ff5a83f345 17/48: Simplify implementation of style/thm-restate.el, Tassilo Horn, 2022/11/18