branch: externals/org-modern commit ed9157df697fea8511267e3f9d796447cdd8efa9 Author: JD Smith <93749+jdtsm...@users.noreply.github.com> Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>
Omit block decoration modifications from undo stack --- org-modern-indent.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/org-modern-indent.el b/org-modern-indent.el index 01e81be4f3..f8e515fbaa 100644 --- a/org-modern-indent.el +++ b/org-modern-indent.el @@ -50,12 +50,13 @@ explicitly, or inherited." (t (eq element face))) return t)) -(defsubst org-modern-indent--add-props (beg end line extra-pad &optional guide wrap-guide) - (add-text-properties beg end - `(line-prefix - ,(concat line guide) - wrap-prefix - ,(concat line (or wrap-guide guide) extra-pad)))) +(defun org-modern-indent--add-props (beg end line extra-pad &optional guide wrap-guide) + (with-silent-modifications + (add-text-properties beg end + `(line-prefix + ,(concat line guide) + wrap-prefix + ,(concat line (or wrap-guide guide) extra-pad))))) (defvar org-modern-indent-begin nil) (defvar org-modern-indent-guide nil)