summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-09-23 22:08:02 -0400
committerKyle Meyer <kyle@kyleam.com>2016-09-23 22:08:02 -0400
commit886fec8a8c5d862b1f33fc794c6b3b6aed3e8b05 (patch)
treef30e20506fa7299da237c2351aa6f1d9983e97d9
parent0b2d378723682cff6080fa982fdbe90dfda110ee (diff)
downloademacs.d-886fec8a8c5d862b1f33fc794c6b3b6aed3e8b05.tar.gz
latex-imenu-create-index-function: Use rx
-rw-r--r--lisp/km-tex.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/km-tex.el b/lisp/km-tex.el
index f3f0727..aef7e8e 100644
--- a/lisp/km-tex.el
+++ b/lisp/km-tex.el
@@ -27,7 +27,8 @@
;; See `LaTeX-imenu-create-index-function'.
(TeX-update-style)
(let ((sec-re (LaTeX-outline-regexp))
- (title-re "\\*\\{0,1\\}{\\([^}]*\\)}")
+ (title-re (rx (zero-or-one "*")
+ "{" (group (zero-or-more (not (any "}"))))))
entries)
(goto-char (point-min))
(while (re-search-forward sec-re nil t)