branch: externals/auctex
commit 034c5287414dd2e0969f21b6bc919b77100cb14b
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
* latex.el (LaTeX-auto-regexp-list): Save regexp groups.
---
latex.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/latex.el b/latex.el
index e9c4fe3297..f56b51893c 100644
--- a/latex.el
+++ b/latex.el
@@ -1838,16 +1838,15 @@ This is necessary since index entries may contain
commands and stuff.")
1 TeX-auto-file)
("\\\\include{\\(\\.*[^#}%\\.\n\r]+\\)\\(\\.[^#}%\\.\n\r]+\\)?}"
1 TeX-auto-file)
- (,(concat "\\\\bibitem{\\(" token "[^, \n\r\t%\"#'()={}]*\\)}")
- 1 LaTeX-auto-bibitem)
- (,(concat "\\\\bibitem\\[[^][\n\r]+\\]{\\(" token "[^,
\n\r\t%\"#'()={}]*\\)}")
+ (,(concat "\\\\bibitem\\(?:\\[[^][\n\r]+\\]\\)?"
+ "{\\(" token "[^, \n\r\t%\"#'()={}]*\\)}")
1 LaTeX-auto-bibitem)
("\\\\bibliography{\\([^#}\\\n\r]+\\)}" 1 LaTeX-auto-bibliography)
("\\\\addbibresource\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\n\r]+\\)\\..+}"
1 LaTeX-auto-bibliography)
("\\\\add\\(?:global\\|section\\)bib\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\n\r.]+\\)\\(?:\\..+\\)?}"
1 LaTeX-auto-bibliography)
- ("\\\\newrefsection\\[\\([^]]+\\)\\]" 1 LaTeX-split-bibs)
- ("\\\\begin{refsection}\\[\\([^]]+\\)\\]" 1 LaTeX-split-bibs)))
+ ("\\\\\\(?:newrefsection\\|begin{refsection}\\)\\[\\([^]]+\\)\\]"
+ 1 LaTeX-split-bibs)))
LaTeX-auto-class-regexp-list
LaTeX-auto-label-regexp-list
LaTeX-auto-index-regexp-list