Mercurial > emacs
comparison lisp/textmodes/tex-mode.el @ 8553:090fb6dea9dd
(tex-mode): Allow for documentclass options when checking for SliTeX.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 17 Aug 1994 20:30:22 +0000 |
parents | 03938bbc5bbb |
children | 30d1c79f19b6 |
comparison
equal
deleted
inserted
replaced
8552:1353c008cf8e | 8553:090fb6dea9dd |
---|---|
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}\\|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)))) |
269 (if mode (funcall mode) | 270 (if mode (funcall mode) |
270 (funcall tex-default-mode)))) | 271 (funcall tex-default-mode)))) |