diff options
author | Arash Esbati <arash@gnu.org> | 2017-02-13 09:22:12 +0100 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2017-02-13 17:07:12 +0100 |
commit | 271dcf8652ccf94d8582b2bcdb26f066d0b946a2 (patch) | |
tree | 463ce04980b999c02b1e00fce84e4309bf115344 /lisp/textmodes/reftex.el | |
parent | cb410433e069b5bb450193353c3fea8593a643a9 (diff) | |
download | emacs-271dcf8652ccf94d8582b2bcdb26f066d0b946a2.tar.gz |
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.
Diffstat (limited to 'lisp/textmodes/reftex.el')
-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." ((save-excursion (goto-char (point-min)) (re-search-forward - "^[[:space:]]*\\\\documentclass\\[\\([[:word:].]+\\)\\]{subfiles}" + "^[[:space:]]*\\\\documentclass\\[\\([^]]+\\)\\]{subfiles}" nil t)) (match-string-no-properties 1)) ;; AUCTeX is loaded. Use its mechanism. |