aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Angeli2010-11-06 16:56:29 +0100
committerRalf Angeli2010-11-06 16:56:29 +0100
commit5d8f9169b67b2a880d8cf2cb7daa5eeeea5e60ec (patch)
treeb742769c0b95826602a5d4b73721e43b5b716776
parent6dc61cf1b69793483dc3dc1922bef5e2ab12ab5b (diff)
downloademacs-5d8f9169b67b2a880d8cf2cb7daa5eeeea5e60ec.tar.gz
emacs-5d8f9169b67b2a880d8cf2cb7daa5eeeea5e60ec.zip
RefTeX: Improve matching of bib entries.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/textmodes/reftex-cite.el7
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f9280d5f0c6..9407c62075f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12010-11-06 Ralf Angeli <angeli@caeruleus.net>
2
3 * textmodes/reftex-cite.el
4 (reftex-extract-bib-entries-from-thebibliography): Match bibitem
5 entries with whitespace after \bibitem.
6 (reftex-create-bibtex-file): Match entries containing numbers and
7 symbol constituents. Make sure that entries with whitespace at
8 various places are found.
9
12010-11-05 Christian Millour <cm@abtela.com> (tiny change) 102010-11-05 Christian Millour <cm@abtela.com> (tiny change)
2 11
3 * shell.el (shell-process-popd): Made aware of comint-file-name-prefix. 12 * shell.el (shell-process-popd): Made aware of comint-file-name-prefix.
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 @@
379 (split-string 379 (split-string
380 (buffer-substring-no-properties 380 (buffer-substring-no-properties
381 start end) 381 start end)
382 "[ \t\n\r]*\\\\bibitem\ 382 "[ \t\n\r]*\\\\bibitem[ \t]*\
383\\(\\[[^]]*]\\)*\[ \t]*")))))) 383\\(\\[[^]]*]\\)*\[ \t]*"))))))
384 (goto-char end)))))) 384 (goto-char end))))))
385 (unless entries 385 (unless entries
@@ -1147,9 +1147,8 @@ The sequence in the new file is the same as it was in the old database."
1147 (save-restriction 1147 (save-restriction
1148 (widen) 1148 (widen)
1149 (goto-char (point-min)) 1149 (goto-char (point-min))
1150 (while (re-search-forward 1150 (while (re-search-forward "^[ \t]*@\\(?:\\w\\|\\s_\\)+[ \t\n\r]*\
1151 "^[ \t]*@[a-zA-Z]+[ \t]*{\\([^ \t\r\n]+\\)," 1151\[{(][ \t\n\r]*\\([^ \t\n\r,]+\\)" nil t)
1152 nil t)
1153 (setq key (match-string 1) 1152 (setq key (match-string 1)
1154 beg (match-beginning 0) 1153 beg (match-beginning 0)
1155 end (progn 1154 end (progn