emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 196/299: * bib-cite.el (bib-highlight-mouse): Change regexp to co


From: Stefan Monnier
Subject: [elpa] 196/299: * bib-cite.el (bib-highlight-mouse): Change regexp to cope with multiple optional arguments of a macro.
Date: Sun, 02 Nov 2014 03:11:24 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

commit b424fd01acc27a8a9bd5bdbb903a20374416cbe8
Author: Ralf Angeli <address@hidden>
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  <address@hidden>
+
+       * bib-cite.el (bib-highlight-mouse): Change regexp to cope with
+       multiple optional arguments of a macro.
+
 2013-11-09  Tassilo Horn  <address@hidden>
 
        * 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]