]> git.eshelyaron.com Git - emacs.git/commitdiff
(latex-backward-sexp-1): Handle the special case of \end{verbatim}.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 11 Dec 2004 22:00:38 +0000 (22:00 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 11 Dec 2004 22:00:38 +0000 (22:00 +0000)
lisp/textmodes/tex-mode.el

index f6f4c63fdc37432525f6b40a95d67418a2dac045..bac2ed6f8008c0d0bde0e633e889967dc45d0668 100644 (file)
@@ -1351,7 +1351,9 @@ Mark is left at original location."
       (when (eq (char-after) ?{)
        (let ((newpos (point)))
          (when (ignore-errors (backward-sexp 1) t)
-           (if (looking-at "\\\\end\\>")
+           (if (or (looking-at "\\\\end\\>")
+                   ;; In case the \\ ends a verbatim section.
+                   (and (looking-at "end\\>") (eq (char-before) ?\\)))
                (tex-last-unended-begin)
              (goto-char newpos))))))))