2012-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
+ * textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB
+ as well (bug#11646).
+
* loadup.el: Count byte-code functions as well.
* emacs-lisp/byte-opt.el (featurep): Move compiler-macro...
"Syntax table used while computing indentation.")
(defun latex-indent (&optional arg)
- (if (and (eq (get-text-property (line-beginning-position) 'face)
+ (if (and (eq (get-text-property (if (and (eobp) (bolp))
+ (max (point-min) (1- (point)))
+ (line-beginning-position)) 'face)
'tex-verbatim))
'noindent
(with-syntax-table tex-latex-indent-syntax-table