[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 2d0fdebac0 69/76: Preserve braces after @TeX and similar macros., (continued)
- [elpa] externals/auctex 2d0fdebac0 69/76: Preserve braces after @TeX and similar macros., Tassilo Horn, 2023/01/13
- [elpa] externals/auctex c60ed913a0 12/76: ; Remove unnecessary `declare-function', Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 7c15b32d06 47/76: Simplify implementation of style/ltugboat.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 643d39a10c 75/76: Update Pygments style names, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 358b4d0785 76/76: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 4700af5dd4 64/76: ; Delete ineffective string escapes reported by Relint, 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 13c77f998e 28/76: Simplify implementation of style/empheq.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex ff65b9b4d0 65/76: Avoid compiler warnings with long function names, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 324cb5c913 41/76: Simplify implementation of style/hologo.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 3806176ba2 56/76: Fix argument description in doc strings,
Tassilo Horn <=
- [elpa] externals/auctex 517d5a6e4e 34/76: ; * style/floatrow.el ("floatrow"): Fix last change., Tassilo Horn, 2023/01/13
- [elpa] externals/auctex ac7ad4fff4 36/76: Simplify implementation of style/footmisc.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex d7dc696f47 25/76: * latex.el (LaTeX-env-contents): Add the "nowarn" key., Tassilo Horn, 2023/01/13
- [elpa] externals/auctex c7de94dc94 24/76: Replace `TeX-arg-eval', 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 5c67eb2dfd 07/76: Simplify implementation of style/babel.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex e97fb94f4e 62/76: Pacify compiler warning, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 22336f15bd 52/76: Simplify implementation of style/mathtools.el, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex bf66b302a4 61/76: Improve the previous commit slightly, Tassilo Horn, 2023/01/13
- [elpa] externals/auctex 5484b57bc4 31/76: Don't rely on the value of `LaTeX-current-environment', Tassilo Horn, 2023/01/13