[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex dff1592319 09/60: Adjust argument
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex dff1592319 09/60: Adjust argument list of `TeX-arg-length' |
Date: |
Fri, 8 Apr 2022 11:52:47 -0400 (EDT) |
branch: externals/auctex
commit dff1592319a6fb9d9db2038af3704d8844840200
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Adjust argument list of `TeX-arg-length'
* latex.el (TeX-arg-length): Put DEFAULT before INITIAL-INPUT in
the argument list. Adjust all occurrences in the library
accordingly.
* style/ltxtable.el ("ltxtable"): Track the new signature of
`TeX-arg-length'.
---
latex.el | 28 ++++++++++++++--------------
style/ltxtable.el | 2 +-
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/latex.el b/latex.el
index a9a8f3865b..570e2d2e10 100644
--- a/latex.el
+++ b/latex.el
@@ -2222,15 +2222,15 @@ list of defined saveboxes."
(LaTeX-add-saveboxes savebox))
(TeX-argument-insert savebox optional TeX-esc)))
-(defun TeX-arg-length (optional &optional prompt initial-input
- definition default)
+(defun TeX-arg-length (optional &optional prompt default initial-input
+ definition)
"Prompt for a LaTeX length.
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. Use PROMPT as the prompt
-string. If INITIAL-INPUT is non-nil, insert it in the minibuffer
-initially, with point positioned at the end. If DEFINITION is
-non-nil, the length is added to the list of defined length.
-DEFAULT is passed to `completing-read', which see."
+string. DEFAULT is passed to `completing-read', which see. If
+INITIAL-INPUT is non-nil, insert it in the minibuffer initially,
+with point positioned at the end. If DEFINITION is non-nil, the
+length is added to the list of defined length."
(let ((length
(completing-read
(TeX-argument-prompt optional
@@ -2366,7 +2366,7 @@ string."
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. Use PROMPT as the prompt
string."
- (TeX-arg-length optional prompt "\\" t))
+ (TeX-arg-length optional prompt nil "\\" t))
(defcustom LaTeX-style-list '(("amsart")
("amsbook")
@@ -7257,13 +7257,13 @@ function would return non-nil and `(match-string 1)'
would return
'("footnotemark"
(TeX-arg-conditional TeX-arg-footnote-number-p ([ "Number" ]) nil))
'("newlength" (TeX-arg-define-length "Length macro"))
- '("setlength" (TeX-arg-length "Length macro" "\\")
+ '("setlength" (TeX-arg-length "Length macro" nil "\\")
(TeX-arg-length "Length value"))
- '("addtolength" (TeX-arg-length "Length macro" "\\")
+ '("addtolength" (TeX-arg-length "Length macro" nil "\\")
(TeX-arg-length "Length to add"))
- '("settowidth" (TeX-arg-length "Length macro" "\\") "Text")
- '("settoheight" (TeX-arg-length "Length macro" "\\") "Text")
- '("settodepth" (TeX-arg-length "Length macro" "\\") "Text")
+ '("settowidth" (TeX-arg-length "Length macro" nil "\\") "Text")
+ '("settoheight" (TeX-arg-length "Length macro" nil "\\") "Text")
+ '("settodepth" (TeX-arg-length "Length macro" nil "\\") "Text")
'("\\" [ "Space" ])
'("\\*" [ "Space" ])
'("hyphenation" t)
@@ -7377,8 +7377,8 @@ function would return non-nil and `(match-string 1)'
would return
'("filecontents*" LaTeX-env-contents))
(TeX-add-symbols
- '("enlargethispage" (TeX-arg-length nil nil nil "1.0\\baselineskip"))
- '("enlargethispage*" (TeX-arg-length nil nil nil "1.0\\baselineskip"))
+ '("enlargethispage" (TeX-arg-length nil "1.0\\baselineskip"))
+ '("enlargethispage*" (TeX-arg-length nil "1.0\\baselineskip"))
'("tabularnewline" [ TeX-arg-length ])
'("suppressfloats" [ TeX-arg-tb "Suppress floats position" ])
'("ensuremath" "Math commands")
diff --git a/style/ltxtable.el b/style/ltxtable.el
index b80eb07034..51b9b02550 100644
--- a/style/ltxtable.el
+++ b/style/ltxtable.el
@@ -59,7 +59,7 @@ The regexp for the 2. argument is the same as for \"input\"
and
(TeX-add-symbols
'("LTXtable"
- (TeX-arg-length "Width" nil nil "1.0\\linewidth")
+ (TeX-arg-length "Width" "1.0\\linewidth")
(TeX-arg-eval
(lambda ()
(let ((longtable (file-relative-name
- [AUCTeX-diffs] [elpa] externals/auctex 7119e9b58c 14/60: ; Fix tests relying on font-lock has put syntax properties already, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 7119e9b58c 14/60: ; Fix tests relying on font-lock has put syntax properties already, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 3e95554c27 19/60: Reduce code duplication in style/sidecap.el, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 163dcb75bd 02/60: Fix label insertion at env. insertion with active region (bug#28382), Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex f464242eab 29/60: Enable indent by square bracket, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex f686fbca6d 16/60: Add new test, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex e37c7a8b39 31/60: Revise documentation about simultaneous process, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 844e758a47 07/60: Improve indent in tabular-like environments, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 0e0551126d 17/60: * doc/changes.texi: Document switch from initial input to default., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex ab3bfaf103 13/60: Don't use obsolete font-lock-syntactic-keywords, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 2be733a3e3 28/60: Add new style/l3doc.el, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex dff1592319 09/60: Adjust argument list of `TeX-arg-length',
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex c43d21326d 42/60: Follow similar update of latex.el in context.el, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex b2cea20056 53/60: ; Delete unnecessary quoting in docstrings, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 4e4c48556b 08/60: ; Trivial cleanup, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex b3d4a509d0 39/60: ; * doc/auctex.texi (Indenting): Fix wording., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 4bcda2d50c 35/60: Improve indentation in env from algpseudocode package, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 1823017839 55/60: Wrap the 'function' environment better with %, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 36655f6a5e 24/60: Revert "Fix simultaneity", Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex fce8b94ca8 41/60: Update documentation with respect to indent, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 8938787491 37/60: ; * style/algpseudocode.el ("algpseudocode"): Fix "While"., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex eb4e331bd6 51/60: Add news for new indent feature, Tassilo Horn, 2022/04/08