changeset 10325:070c1f54707b

(tex-mode): Recognize \NeedsTeXFormat{LaTeX2e}.
author Richard M. Stallman <rms@gnu.org>
date Tue, 03 Jan 1995 22:28:50 +0000
parents 82efaa5a2567
children 627063d29d25
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Tue Jan 03 07:05:41 1995 +0000
+++ b/lisp/textmodes/tex-mode.el	Tue Jan 03 22:28:50 1995 +0000
@@ -263,7 +263,7 @@
 				    (beginning-of-line)
 				    (search-forward "%" search-end t))))))
       (if (and slash (not comment))
-	  (setq mode (if (looking-at "documentstyle\\|documentclass\\|begin\\b")
+	  (setq mode (if (looking-at "documentstyle\\|documentclass\\|begin\\b\\|NeedsTeXFormat{LaTeX")
                          (if (looking-at
 			      "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}")
                              'slitex-mode