comparison lisp/textmodes/tex-mode.el @ 8474:03938bbc5bbb

(tex-mode): Accept documentclass when checking Slitex.
author Richard M. Stallman <rms@gnu.org>
date Sun, 07 Aug 1994 06:47:57 +0000
parents e0f2f3fc75fa
children 090fb6dea9dd
comparison
equal deleted inserted replaced
8473:c285c3b0ea54 8474:03938bbc5bbb
260 (save-excursion 260 (save-excursion
261 (beginning-of-line) 261 (beginning-of-line)
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}") 265 (if (looking-at "documentstyle{slides}\\|documentclass{slides}")
266 'slitex-mode 266 'slitex-mode
267 'latex-mode) 267 'latex-mode)
268 'plain-tex-mode)))) 268 'plain-tex-mode))))
269 (if mode (funcall mode) 269 (if mode (funcall mode)
270 (funcall tex-default-mode)))) 270 (funcall tex-default-mode))))