From: Stefan Monnier Date: Wed, 13 Jun 2012 13:56:57 +0000 (-0400) Subject: * lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB. X-Git-Tag: emacs-24.2.90~1199^2~474^2~14 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ccf1dc189c647a4a70db6b4733693a508616389e;p=emacs.git * lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB. Fixes: debbugs:11646 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d9d75c8d091..a016032e285 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2012-06-13 Stefan Monnier + * 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... diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index af00531137a..a9a2113e7fc 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -2686,7 +2686,9 @@ Runs the shell command defined by `tex-show-queue-command'." "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