[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 3806176ba2 56/76: Fix argument description in do
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 3806176ba2 56/76: Fix argument description in doc strings |
Date: |
Fri, 13 Jan 2023 14:31:05 -0500 (EST) |
branch: externals/auctex
commit 3806176ba2fa11cc990e49792f9db34532c85258
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Fix argument description in doc strings
* latex.el (TeX-read-key-val):
* multi-prompt.el (multi-prompt-key-value):
Correct the format of KEY-VAL-ALIST and state that variable is also
allowed.
* style/acro.el (LaTeX-arg-acro-key-val):
Simplify instead of stating the detail.
---
latex.el | 8 +++++---
multi-prompt.el | 10 +++++++---
style/acro.el | 9 ++++-----
3 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/latex.el b/latex.el
index 0a49fccdfc..81db2e760b 100644
--- a/latex.el
+++ b/latex.el
@@ -3266,9 +3266,11 @@ reading an optional argument. KEY-VAL-ALIST can be
- A symbol returning an alist
- An alist
-The car of each element should be a string representing a key and
-the optional cdr should be a list with strings to be used as
-values for the key.
+Each entry of this alist is a list. The first element of each
+list is a string representing a key and the optional second
+element is a list with strings to be used as values for the key.
+The second element can also be a variable returning a list of
+strings.
PROMPT replaces the standard one where \\=' (k=v): \\=' is
appended to it. If you want the full control over the prompt,
diff --git a/multi-prompt.el b/multi-prompt.el
index b863271146..06f28ca544 100644
--- a/multi-prompt.el
+++ b/multi-prompt.el
@@ -185,9 +185,13 @@ the alist elements."
hist def inherit-input-method)
"Read multiple strings, with completion and key=value support.
PROMPT is a string to prompt with, usually ending with a colon
-and a space. TABLE is an alist. The car of each element should
-be a string representing a key and the optional cdr should be a
-list with strings to be used as values for the key.
+and a space.
+
+TABLE is an alist where each entry is a list. The first element
+of each list is a string representing a key and the optional
+second element is a list with strings to be used as values for
+the key. The second element can also be a variable returning a
+list of strings.
See the documentation for `completing-read' for details on the
other arguments: PREDICATE, REQUIRE-MATCH, INITIAL-INPUT, HIST,
diff --git a/style/acro.el b/style/acro.el
index 56291a1b2c..26e32b8d6a 100644
--- a/style/acro.el
+++ b/style/acro.el
@@ -152,11 +152,10 @@ in its optional argument.")
(defun LaTeX-arg-acro-key-val (optional prompt key-val-alist)
"Prompt for keys and values in KEY-VAL-ALIST.
<SPC> key binding in minibuffer is removed temporarily. Insert
-the given value as a TeX macro argument. If OPTIONAL is non-nil,
-insert it as an optional argument. Use PROMPT as the prompt
-string. KEY-VAL-ALIST is an alist. The car of each element
-should be a string representing a key and the optional cdr should
-be a list with strings to be used as values for the key."
+the given value as a TeX macro argument.
+
+See `TeX-read-key-val' for explanation of OPTIONAL, PROMPT and
+KEY-VAL-ALIST."
;; Remove <SPC> key binding from map used in `multi-prompt-key-value' (called
;; by `TeX-arg-key-val') with `require-match' set to `nil'.
(let ((crm-local-completion-map
- [elpa] externals/auctex ac7ad4fff4 36/76: Simplify implementation of style/footmisc.el, (continued)
- [elpa] externals/auctex ac7ad4fff4 36/76: Simplify implementation of style/footmisc.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 33bb54bb9e 38/76: Simplify implementation of style/geometry.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex dc6e8c44c9 72/76: Turn `y-or-n-p' into `always' for in-buffer completion, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex e4ceb88bb7 14/76: Bind a value to `LaTeX-current-environment' locally, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 4b9dafad86 29/76: Simplify implementation of style/fancyvrb.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 982b20571c 48/76: * style/ltxdoc.el ("ltxdoc"): Replace `TeX-arg-eval'., Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 46c1a5a592 63/76: Add filename as a prefix to catchfilebetweentags counter, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 2d0fdebac0 69/76: Preserve braces after @TeX and similar macros., Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 30bca31f77 71/76: ; * style/xcolor.el ("xcolor"): Replace `TeX-arg-eval'., Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 643d39a10c 75/76: Update Pygments style names, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 3806176ba2 56/76: Fix argument description in doc strings,
Tassilo Horn <=