diff options
| author | Arash Esbati | 2017-02-13 09:22:12 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2017-02-13 17:07:12 +0100 |
| commit | 271dcf8652ccf94d8582b2bcdb26f066d0b946a2 (patch) | |
| tree | 463ce04980b999c02b1e00fce84e4309bf115344 | |
| parent | cb410433e069b5bb450193353c3fea8593a643a9 (diff) | |
| download | emacs-271dcf8652ccf94d8582b2bcdb26f066d0b946a2.tar.gz emacs-271dcf8652ccf94d8582b2bcdb26f066d0b946a2.zip | |
Match all characters in optional argument of \documentclass
* lisp/textmodes/reftex.el (reftex-TeX-master-file): Match all
characters in optional argument containing name of the main file.
| -rw-r--r-- | lisp/textmodes/reftex.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index 18b35981f82..9754d2b20ff 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el | |||
| @@ -352,7 +352,7 @@ If the symbols for the current master file do not exist, they are created." | |||
| 352 | ((save-excursion | 352 | ((save-excursion |
| 353 | (goto-char (point-min)) | 353 | (goto-char (point-min)) |
| 354 | (re-search-forward | 354 | (re-search-forward |
| 355 | "^[[:space:]]*\\\\documentclass\\[\\([[:word:].]+\\)\\]{subfiles}" | 355 | "^[[:space:]]*\\\\documentclass\\[\\([^]]+\\)\\]{subfiles}" |
| 356 | nil t)) | 356 | nil t)) |
| 357 | (match-string-no-properties 1)) | 357 | (match-string-no-properties 1)) |
| 358 | ;; AUCTeX is loaded. Use its mechanism. | 358 | ;; AUCTeX is loaded. Use its mechanism. |