# HG changeset patch # User Richard M. Stallman # Date 777155422 0 # Node ID 090fb6dea9ddbc182e07fdf3d4d68fa0efbb79de # Parent 1353c008cf8e35510dadd4c9df7bfe4c5e148dc2 (tex-mode): Allow for documentclass options when checking for SliTeX. diff -r 1353c008cf8e -r 090fb6dea9dd lisp/textmodes/tex-mode.el --- a/lisp/textmodes/tex-mode.el Wed Aug 17 20:06:55 1994 +0000 +++ b/lisp/textmodes/tex-mode.el Wed Aug 17 20:30:22 1994 +0000 @@ -262,7 +262,8 @@ (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))))