diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-09-23 22:08:02 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-09-23 22:08:02 -0400 |
commit | 886fec8a8c5d862b1f33fc794c6b3b6aed3e8b05 (patch) | |
tree | f30e20506fa7299da237c2351aa6f1d9983e97d9 /lisp | |
parent | 0b2d378723682cff6080fa982fdbe90dfda110ee (diff) | |
download | emacs.d-886fec8a8c5d862b1f33fc794c6b3b6aed3e8b05.tar.gz |
latex-imenu-create-index-function: Use rx
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/km-tex.el | 3 |
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) |