emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108599: * lisp/textmodes/tex-mode


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108599: * lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB.
Date: Fri, 02 Nov 2012 02:32:46 -0000
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108599
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11646
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Wed 2012-06-13 09:56:57 -0400
message:
  * lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB.
modified:
  lisp/ChangeLog
  lisp/textmodes/tex-mode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-06-13 13:18:59 +0000
+++ b/lisp/ChangeLog    2012-06-13 13:56:57 +0000
@@ -1,5 +1,8 @@
 2012-06-13  Stefan Monnier  <address@hidden>
 
+       * 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...

=== modified file 'lisp/textmodes/tex-mode.el'
--- a/lisp/textmodes/tex-mode.el        2012-04-16 23:57:09 +0000
+++ b/lisp/textmodes/tex-mode.el        2012-06-13 13:56:57 +0000
@@ -2686,7 +2686,9 @@
   "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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]