changeset 8463:e0f2f3fc75fa

(tex-mode): Check for documentclass like documentstyle.
author Richard M. Stallman <rms@gnu.org>
date Sat, 06 Aug 1994 03:22:23 +0000
parents c281b470d633
children edbb014c600a
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	Sat Aug 06 03:19:35 1994 +0000
+++ b/lisp/textmodes/tex-mode.el	Sat Aug 06 03:22:23 1994 +0000
@@ -261,7 +261,7 @@
 				    (beginning-of-line)
 				    (search-forward "%" search-end t))))))
       (if (and slash (not comment))
-	  (setq mode (if (looking-at "documentstyle")
+	  (setq mode (if (looking-at "documentstyle\\|documentclass")
                          (if (looking-at "documentstyle{slides}")
                              'slitex-mode
                            'latex-mode)