diff options
author | Ralf Angeli <angeli@caeruleus.net> | 2010-11-06 16:56:29 +0100 |
---|---|---|
committer | Ralf Angeli <angeli@caeruleus.net> | 2010-11-06 16:56:29 +0100 |
commit | 5d8f9169b67b2a880d8cf2cb7daa5eeeea5e60ec (patch) | |
tree | b742769c0b95826602a5d4b73721e43b5b716776 /lisp/textmodes/reftex-cite.el | |
parent | 6dc61cf1b69793483dc3dc1922bef5e2ab12ab5b (diff) | |
download | emacs-5d8f9169b67b2a880d8cf2cb7daa5eeeea5e60ec.tar.gz |
RefTeX: Improve matching of bib entries.
Diffstat (limited to 'lisp/textmodes/reftex-cite.el')
-rw-r--r-- | lisp/textmodes/reftex-cite.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el index 5edd9f24122..2c8a14a3808 100644 --- a/lisp/textmodes/reftex-cite.el +++ b/lisp/textmodes/reftex-cite.el @@ -379,7 +379,7 @@ (split-string (buffer-substring-no-properties start end) - "[ \t\n\r]*\\\\bibitem\ + "[ \t\n\r]*\\\\bibitem[ \t]*\ \\(\\[[^]]*]\\)*\[ \t]*")))))) (goto-char end)))))) (unless entries @@ -1147,9 +1147,8 @@ The sequence in the new file is the same as it was in the old database." (save-restriction (widen) (goto-char (point-min)) - (while (re-search-forward - "^[ \t]*@[a-zA-Z]+[ \t]*{\\([^ \t\r\n]+\\)," - nil t) + (while (re-search-forward "^[ \t]*@\\(?:\\w\\|\\s_\\)+[ \t\n\r]*\ +\[{(][ \t\n\r]*\\([^ \t\n\r,]+\\)" nil t) (setq key (match-string 1) beg (match-beginning 0) end (progn |