From: Richard M. Stallman Date: Wed, 17 Aug 1994 20:30:22 +0000 (+0000) Subject: (tex-mode): Allow for documentclass options when checking for SliTeX. X-Git-Tag: emacs-19.34~7300 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0edb98158999f83162b07b96448fdc91c2c4ddb4;p=emacs.git (tex-mode): Allow for documentclass options when checking for SliTeX. --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 00518f8578b..bec121b4100 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -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))))