monnier pushed a commit to branch externals/auctex in repository elpa. commit b424fd01acc27a8a9bd5bdbb903a20374416cbe8 Author: Ralf Angeli <ang...@photon.caeruleus.net> Date: Sun Nov 10 14:54:54 2013 +0100
* bib-cite.el (bib-highlight-mouse): Change regexp to cope with multiple optional arguments of a macro. --- ChangeLog | 5 +++++ bib-cite.el | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0332a04..c97e020 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-10 Ralf Angeli <ang...@caeruleus.net> + + * bib-cite.el (bib-highlight-mouse): Change regexp to cope with + multiple optional arguments of a macro. + 2013-11-09 Tassilo Horn <t...@gnu.org> * tex.el (TeX-complete-make-expert-command-functions): Change diff --git a/bib-cite.el b/bib-cite.el index 5a4e8a5..1dbe272 100644 --- a/bib-cite.el +++ b/bib-cite.el @@ -1411,7 +1411,7 @@ See variables bib-etags-command and bib-etags-filename" (re-search-forward (concat "\\\\\\(" (substring bib-ref-regexp 2) - "\\|label\\|[A-Za-z]*cite[A-Za-z]*\\(\\[.*\\]\\)?\\){[^}]*}") + "\\|label\\|[A-Za-z]*cite[A-Za-z]*\\(\\[[^]]*\\]\\)*\\){[^}]*}") nil t) (setq s (match-beginning 0)) (setq e (match-end 0))