aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-17 20:30:22 +0000
committerRichard M. Stallman1994-08-17 20:30:22 +0000
commit0edb98158999f83162b07b96448fdc91c2c4ddb4 (patch)
tree8764356e48c16f8bba61ada62ab1bbb2346c0ff9
parenta1943c34bbccbd5d39d617a79af52eaaaa970d30 (diff)
downloademacs-0edb98158999f83162b07b96448fdc91c2c4ddb4.tar.gz
emacs-0edb98158999f83162b07b96448fdc91c2c4ddb4.zip
(tex-mode): Allow for documentclass options when checking for SliTeX.
-rw-r--r--lisp/textmodes/tex-mode.el3
1 files changed, 2 insertions, 1 deletions
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."
262 (search-forward "%" search-end t)))))) 262 (search-forward "%" search-end t))))))
263 (if (and slash (not comment)) 263 (if (and slash (not comment))
264 (setq mode (if (looking-at "documentstyle\\|documentclass") 264 (setq mode (if (looking-at "documentstyle\\|documentclass")
265 (if (looking-at "documentstyle{slides}\\|documentclass{slides}") 265 (if (looking-at
266 "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}")
266 'slitex-mode 267 'slitex-mode
267 'latex-mode) 268 'latex-mode)
268 'plain-tex-mode)))) 269 'plain-tex-mode))))