diff options
| author | Tassilo Horn | 2014-01-21 09:18:30 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2014-01-21 09:18:30 +0100 |
| commit | e7d807cae81ea3ea843898f9bce28ef2b9debafe (patch) | |
| tree | 9710f4070e52c5a47c9329504d0ebdb3dc9a578c | |
| parent | 5004c3bfbb0e3bbaa7d91658eee04d2d4daef663 (diff) | |
| download | emacs-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.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-cite.el | 2 |
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 @@ | |||
| 1 | 2014-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 | |||
| 1 | 2014-01-21 Leo Liu <sdl.web@gmail.com> | 7 | 2014-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))) |