From: Richard M. Stallman Date: Sun, 23 Oct 1994 20:39:25 +0000 (+0000) Subject: (latex-mode): Recognize \item etc. that have no arg X-Git-Tag: emacs-19.34~6183 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22378c0edbfb3c4b16ce52f98a1731004db438dd;p=emacs.git (latex-mode): Recognize \item etc. that have no arg because only a comment follows. --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 68562270308..abc1da68bfb 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -395,10 +395,10 @@ subshell is initiated, `tex-shell-hook' is run." ^\\\\chapter\\>\\|^\\\\section\\>\\|\ ^\\\\subsection\\>\\|^\\\\subsubsection\\>\\|\ ^\\\\paragraph\\>\\|^\\\\subparagraph\\>\\|\ -^\\\\item[ \t]*$\\|^\\\\bibitem[ \t]*$\\|^\\\\newline[ \t]*$\\|^\\\\noindent[ \t]*$\\|\ -^\\\\[a-z]*space[ \t]*$\\|^\\\\[a-z]*skip[ \t]*$\\|\ -^\\\\newpage[ \t]*$\\|^\\\\[a-z]*page[a-z]*[ \t]*$\\|^\\\\footnote[ \t]*$\\|\ -^\\\\marginpar[ \t]*$\\|^\\\\parbox[ \t]*$\\|^\\\\caption[ \t]*$") +\\(^\\\\item\\|^\\\\bibitem\\|^\\\\newline\\|^\\\\noindent\\|\ +^\\\\[a-z]*space\\|^\\\\[a-z]*skip\\|\ +^\\\\newpage\\|^\\\\[a-z]*page[a-z]*\\|^\\\\footnote\\|\ +^\\\\marginpar\\|^\\\\parbox\\|^\\\\caption\\)[ \t]*\\($\\|%\\)") (run-hooks 'text-mode-hook 'tex-mode-hook 'latex-mode-hook)) ;;;###autoload