]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-mode): Allow for documentclass options when checking for SliTeX.
authorRichard M. Stallman <rms@gnu.org>
Wed, 17 Aug 1994 20:30:22 +0000 (20:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 17 Aug 1994 20:30:22 +0000 (20:30 +0000)
lisp/textmodes/tex-mode.el

index 00518f8578baba0aeea3b0cf3c4c488396179426..bec121b4100d545fbcc9ad271b0104fd6f47e41a 100644 (file)
@@ -262,7 +262,8 @@ says which mode to use."
                                    (search-forward "%" search-end t))))))
       (if (and slash (not comment))
          (setq mode (if (looking-at "documentstyle\\|documentclass")
-                         (if (looking-at "documentstyle{slides}\\|documentclass{slides}")
+                         (if (looking-at
+                             "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}")
                              'slitex-mode
                            'latex-mode)
                       'plain-tex-mode))))