1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-29 11:02:01 +00:00

* lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB.

Fixes: debbugs:11646
This commit is contained in:
Stefan Monnier 2012-06-13 09:56:57 -04:00
parent 646b5f55df
commit ccf1dc189c
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
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...

View File

@ -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