|
From: | Stefan Monnier |
Subject: | [elpa] 46/299: * latex.el (LaTeX-env-contents): Replaced regular expression with `LaTeX-header-end', i.e., filecontents environments must go somewhere in the preamble but not necessarily before the \documentclass. |
Date: | Sun, 02 Nov 2014 03:10:11 +0000 |
monnier pushed a commit to branch externals/auctex in repository elpa. commit cad437eec728058261951f28cd779c2d4f2eb3b7 Author: Tassilo Horn <address@hidden> Date: Tue Jan 29 07:37:50 2013 +0000 * latex.el (LaTeX-env-contents): Replaced regular expression with `LaTeX-header-end', i.e., filecontents environments must go somewhere in the preamble but not necessarily before the \documentclass. --- ChangeLog | 7 +++++++ latex.el | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73b0151..b6edd62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-01-27 Mads Jensen <address@hidden> + + * latex.el (LaTeX-env-contents): Replaced regular expression with + `LaTeX-header-end', i.e., filecontents environments must go + somewhere in the preamble but not necessarily before the + \documentclass. + 2013-01-26 Mads Jensen <address@hidden> * latex.el (LaTeX-auto-savebox-regexp-list): New variable. diff --git a/latex.el b/latex.el index 3464ad1..0466cc8 100644 --- a/latex.el +++ b/latex.el @@ -1100,8 +1100,8 @@ Just like array and tabular." (defun LaTeX-env-contents (environment) "Insert ENVIRONMENT with filename for contents." (save-excursion - (when (re-search-backward "^\\\\documentclass.*{" nil t) - (error "Put %s environment before \\documentclass" environment))) + (when (re-search-backward LaTeX-header-end nil t) + (error "Put %s environment before \\begin{document}" environment))) (LaTeX-insert-environment environment (concat TeX-grop (read-string "File: ")
[Prev in Thread] | Current Thread | [Next in Thread] |