[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 2c23247 62/80: Support explicitly
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [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
"[^] ,}
%]+"
;; Close the group
- [AUCTeX-diffs] [elpa] externals/auctex d56a596 58/80: ; * tests/tex/path-expansion.el (): Fix typo., (continued)
- [AUCTeX-diffs] [elpa] externals/auctex d56a596 58/80: ; * tests/tex/path-expansion.el (): Fix typo., Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex ccfd3d9 57/80: Restore syntax fontify in Texinfo mode, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 4a56103 56/80: Reduce unnecessary local variable safety inquiry, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 8610189 52/80: Update style/paracol.el to package version 1.35, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex a033c30 43/80: ; Use `LaTeX-extract-key-value-label', Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex f477383 54/80: Update style/thmtools.el to package version 67, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 799c844 63/80: Add new style/changelog.el, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 7cb6c19 59/80: Fix lisp example for `TeX-electric-math', Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex aa17420 46/80: ; Silence the compiler, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex c64d8c1 61/80: * doc/changes.texi: Mention fontification improvement for biblatex., Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 2c23247 62/80: Support explicitly numbered group contructs,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex dac5503 64/80: Add new style/ltugboat.el, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 52e0dac 68/80: Improve detecting of rejected optional arguments, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex a9b5eb1 67/80: ; * style/changelog.el (font-latex-add-keywords): Silence the compiler., Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 65607e5 76/80: * preview.el.in (preview-undump-replacements): Fix last commit., Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex dbc1fa0 71/80: Support new kernel macros \Ref and \labelformat, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 9127647 69/80: Update style/varioref.el to package version 1.6b, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex dc2c2d6 65/80: Make "PDF Tools" viewer available under Windows and macOS, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex 85dd4fe 73/80: Delete \Ref and \labelformat from varioref.el, Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex cc52bce 77/80: Fix for revised file access controls of gs (bug#37719), Tassilo Horn, 2019/10/16
- [AUCTeX-diffs] [elpa] externals/auctex dc5e90e 66/80: Add new style/multitoc.el, Tassilo Horn, 2019/10/16