[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 271dcf8: Match all characters in optional argument
From: |
Tassilo Horn |
Subject: |
[Emacs-diffs] master 271dcf8: Match all characters in optional argument of \documentclass |
Date: |
Mon, 13 Feb 2017 11:07:22 -0500 (EST) |
branch: master
commit 271dcf8652ccf94d8582b2bcdb26f066d0b946a2
Author: Arash Esbati <address@hidden>
Commit: Tassilo Horn <address@hidden>
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.
---
lisp/textmodes/reftex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 18b3598..9754d2b 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 271dcf8: Match all characters in optional argument of \documentclass,
Tassilo Horn <=