]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Jun 2012 13:56:57 +0000 (09:56 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Jun 2012 13:56:57 +0000 (09:56 -0400)
Fixes: debbugs:11646
lisp/ChangeLog
lisp/textmodes/tex-mode.el

index d9d75c8d091cc6cd83a89d2099cbd90e16bb43bd..a016032e285cac2cf80f66bb0349b9d280c17877 100644 (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...
index af00531137ac7bae861790bc0084d942dc8b680c..a9a2113e7fc4e3de53d8c2671774859ba33a5598 100644 (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