aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorTassilo Horn2014-01-21 09:18:30 +0100
committerTassilo Horn2014-01-21 09:18:30 +0100
commite7d807cae81ea3ea843898f9bce28ef2b9debafe (patch)
tree9710f4070e52c5a47c9329504d0ebdb3dc9a578c /lisp
parent5004c3bfbb0e3bbaa7d91658eee04d2d4daef663 (diff)
downloademacs-e7d807cae81ea3ea843898f9bce28ef2b9debafe.tar.gz
emacs-e7d807cae81ea3ea843898f9bce28ef2b9debafe.zip
Fix regex used for searching citation keys.
* lisp/textmodes/reftex-cite.el (reftex-all-used-citation-keys): Fix regex used for scanning for citation keys which failed for citations with optional arguments.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/reftex-cite.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1f899700d46..8f5ae243eeb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12014-01-21 Tassilo Horn <tsdh@gnu.org>
2
3 * textmodes/reftex-cite.el (reftex-all-used-citation-keys): Fix
4 regex used for scanning for citation keys which failed for
5 citations with optional arguments.
6
12014-01-21 Leo Liu <sdl.web@gmail.com> 72014-01-21 Leo Liu <sdl.web@gmail.com>
2 8
3 * simple.el (read--expression): Don't enable eldoc-mode. 9 * simple.el (read--expression): Don't enable eldoc-mode.
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el
index 1654397dc67..a36fa17fca5 100644
--- a/lisp/textmodes/reftex-cite.el
+++ b/lisp/textmodes/reftex-cite.el
@@ -1130,7 +1130,7 @@ recommended for follow mode. It works OK for individual lookups."
1130 (save-restriction 1130 (save-restriction
1131 (widen) 1131 (widen)
1132 (goto-char (point-min)) 1132 (goto-char (point-min))
1133 (while (re-search-forward "\\(?:^\\|\\=\\)[^%\n\r]*?\\\\\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}" nil t) 1133 (while (re-search-forward "\\(?:^\\|\\=\\)[^%\n\r]*?\\\\\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^]]*\\]\\)?{\\([^}]+\\)}" nil t)
1134 (setq kk (match-string-no-properties 3)) 1134 (setq kk (match-string-no-properties 3))
1135 (while (string-match "%.*\n?" kk) 1135 (while (string-match "%.*\n?" kk)
1136 (setq kk (replace-match "" t t kk))) 1136 (setq kk (replace-match "" t t kk)))