diff options
| -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 | ||