diff options
| author | Stefan Monnier | 2004-12-11 22:00:38 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-12-11 22:00:38 +0000 |
| commit | e67064e2c65060f657ed9f88b18854838e95cdfe (patch) | |
| tree | 623ad628db35d4c4257f47ac19b3b2fdcd34f396 | |
| parent | c096ae4d4eeb1890b3f76deab8f3c9835ae69121 (diff) | |
| download | emacs-e67064e2c65060f657ed9f88b18854838e95cdfe.tar.gz emacs-e67064e2c65060f657ed9f88b18854838e95cdfe.zip | |
(latex-backward-sexp-1): Handle the special case of \end{verbatim}.
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index f6f4c63fdc3..bac2ed6f800 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -1351,7 +1351,9 @@ Mark is left at original location." | |||
| 1351 | (when (eq (char-after) ?{) | 1351 | (when (eq (char-after) ?{) |
| 1352 | (let ((newpos (point))) | 1352 | (let ((newpos (point))) |
| 1353 | (when (ignore-errors (backward-sexp 1) t) | 1353 | (when (ignore-errors (backward-sexp 1) t) |
| 1354 | (if (looking-at "\\\\end\\>") | 1354 | (if (or (looking-at "\\\\end\\>") |
| 1355 | ;; In case the \\ ends a verbatim section. | ||
| 1356 | (and (looking-at "end\\>") (eq (char-before) ?\\))) | ||
| 1355 | (tex-last-unended-begin) | 1357 | (tex-last-unended-begin) |
| 1356 | (goto-char newpos)))))))) | 1358 | (goto-char newpos)))))))) |
| 1357 | 1359 | ||