diff options
| author | Tassilo Horn <tsdh@gnu.org> | 2014-01-21 09:18:30 +0100 |
|---|---|---|
| committer | Tassilo Horn <tsdh@gnu.org> | 2014-01-21 09:18:30 +0100 |
| commit | e7d807cae81ea3ea843898f9bce28ef2b9debafe (patch) | |
| tree | 9710f4070e52c5a47c9329504d0ebdb3dc9a578c /lisp/textmodes | |
| parent | 5004c3bfbb0e3bbaa7d91658eee04d2d4daef663 (diff) | |
| download | emacs-e7d807cae81ea3ea843898f9bce28ef2b9debafe.tar.gz | |
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/textmodes')
| -rw-r--r-- | lisp/textmodes/reftex-cite.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." (save-restriction (widen) (goto-char (point-min)) - (while (re-search-forward "\\(?:^\\|\\=\\)[^%\n\r]*?\\\\\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}" nil t) + (while (re-search-forward "\\(?:^\\|\\=\\)[^%\n\r]*?\\\\\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^]]*\\]\\)?{\\([^}]+\\)}" nil t) (setq kk (match-string-no-properties 3)) (while (string-match "%.*\n?" kk) (setq kk (replace-match "" t t kk))) |
