Index: auctex/latex.el
diff -u auctex/latex.el:5.393 auctex/latex.el:5.394
--- auctex/latex.el:5.393       Wed Dec 21 09:53:19 2005
+++ auctex/latex.el     Sat Jan 14 14:41:48 2006
@@ -4663,11 +4663,13 @@
 (defalias 'TeX-doctex-mode 'docTeX-mode)
 
 (defvar LaTeX-header-end
-  (concat (regexp-quote TeX-esc) "begin *" TeX-grop "document" TeX-grcl)
+  (concat "^[^%\n]*" (regexp-quote TeX-esc) "begin *"
+         TeX-grop "document" TeX-grcl)
   "Default end of header marker for LaTeX documents.")
 
 (defvar LaTeX-trailer-start
-  (concat (regexp-quote TeX-esc) "end *" TeX-grop "document" TeX-grcl)
+  (concat "^[^%\n]*" (regexp-quote TeX-esc) "end *"
+         TeX-grop "document" TeX-grcl)
   "Default start of trailer marker for LaTeX documents.")
 
 (defun LaTeX-common-initialization ()


_______________________________________________
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to