yasnippet.el (yas--indent-region): Workaround for issue #1183

This commit is contained in:
Stefan Monnier 2024-01-22 13:46:51 -05:00
parent 47b38b2133
commit b8f3f11ee5

View File

@ -4521,7 +4521,8 @@ The SNIPPET's markers are preserved."
remarkers))) remarkers)))
(unwind-protect (unwind-protect
(progn (back-to-indentation) (progn (back-to-indentation)
(indent-according-to-mode)) (with-demoted-errors "%S"
(indent-according-to-mode)))
(save-restriction (save-restriction
(narrow-to-region bol (line-end-position)) (narrow-to-region bol (line-end-position))
(dolist (remarker remarkers) (dolist (remarker remarkers)