[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 2c23247 62/80: Support explicitly numbered group
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 2c23247 62/80: Support explicitly numbered group contructs |
Date: |
Wed, 16 Oct 2019 11:07:18 -0400 (EDT) |
branch: externals/auctex
commit 2c232474a6406fa7683ffaa70406757904423a46
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Support explicitly numbered group contructs
* latex.el (LaTeX-extract-key-value-label): Add an optional
argument for explicitly numbered group contructs.
---
latex.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/latex.el b/latex.el
index 17a4462..602e2df 100644
--- a/latex.el
+++ b/latex.el
@@ -6694,10 +6694,12 @@ functions `TeX-arg-color' (style/color.el) or
last-optional-rejected))
,@body))
-(defun LaTeX-extract-key-value-label (&optional key)
+(defun LaTeX-extract-key-value-label (&optional key num)
"Return a regexp string to match a label in an optional argument.
The optional KEY is a string which is the name of the key in the
-key=value, default is \"label\".
+key=value, default is \"label\". NUM is an integer for an
+explicitly numbered group construct, useful when adding items to
+`reftex-label-regexps'.
As an extra feature, the key can be the symbol none where the
entire matching for the key=value is skipped. The regexp then is
@@ -6723,6 +6725,9 @@ wrapped in \\(?:...\\)? then."
"[[:space:]]*=[[:space:]]*"
;; Match the value; braces around the value are optional
"{?\\("
+ ;; Cater for NUM which sets the regexp group
+ (when (and num (integerp num))
+ (concat "?" (number-to-string num) ":"))
;; One of these chars terminates the value
"[^] ,}\r\n\t%]+"
;; Close the group
- [elpa] externals/auctex 8530cd0 45/80: Support cleveref labels, (continued)
- [elpa] externals/auctex 8530cd0 45/80: Support cleveref labels, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 4a56103 56/80: Reduce unnecessary local variable safety inquiry, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex b7083ee 51/80: Change color adjustment method (bug#35571, bug#35696, bug#36039), Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 43e98f1 55/80: Update style/titlesec.el to package version 2.11, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex f477383 54/80: Update style/thmtools.el to package version 67, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex ccfd3d9 57/80: Restore syntax fontify in Texinfo mode, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex f127145 60/80: * context.el (ConTeXt-environment): Fix docstring., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex d56a596 58/80: ; * tests/tex/path-expansion.el (): Fix typo., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 8610189 52/80: Update style/paracol.el to package version 1.35, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c64d8c1 61/80: * doc/changes.texi: Mention fontification improvement for biblatex., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 2c23247 62/80: Support explicitly numbered group contructs,
Tassilo Horn <=
- [elpa] externals/auctex dac5503 64/80: Add new style/ltugboat.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 52e0dac 68/80: Improve detecting of rejected optional arguments, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 9127647 69/80: Update style/varioref.el to package version 1.6b, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex eafb114 75/80: Fix preview-latex for TeXLive 2019 update, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex cdb98c6 34/80: Fix last commit, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 0fd9848 35/80: Improve style/mflogo.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 1b88eda 38/80: Fix autoload generation code (bug#35758), Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 90fcbd4 41/80: Make navigation function robust, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c07e4bf 49/80: Update style/AnonymousPro.el to package version 2.2, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a9b5eb1 67/80: ; * style/changelog.el (font-latex-add-keywords): Silence the compiler., Tassilo Horn, 2019/10/16