emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/yasnippet b8f3f11ee5 2/2: yasnippet.el (yas--indent-reg


From: ELPA Syncer
Subject: [elpa] externals/yasnippet b8f3f11ee5 2/2: yasnippet.el (yas--indent-region): Workaround for issue #1183
Date: Mon, 22 Jan 2024 15:59:30 -0500 (EST)

branch: externals/yasnippet
commit b8f3f11ee5c025ca3df8dd91ace39edc75efb585
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    yasnippet.el (yas--indent-region): Workaround for issue #1183
---
 yasnippet.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/yasnippet.el b/yasnippet.el
index 5ce24348a7..6d8aa5d64e 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -4521,7 +4521,8 @@ The SNIPPET's markers are preserved."
                              remarkers)))
                    (unwind-protect
                        (progn (back-to-indentation)
-                              (indent-according-to-mode))
+                              (with-demoted-errors "%S"
+                                (indent-according-to-mode)))
                      (save-restriction
                        (narrow-to-region bol (line-end-position))
                        (dolist (remarker remarkers)



reply via email to

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