From ac40d2a7d19e44166c707a848ade24efe53c0917 Mon Sep 17 00:00:00 2001 From: Joseph Turner Date: Sat, 11 May 2024 23:36:24 -0700 Subject: [PATCH] chg: (-with-inhibit-read-only) Don't modify buffer-undo-list Resolves #177 by making `org-transclusion-add` and `org-transclusion-remove` not affect the buffer undo history. --- org-transclusion.el | 1 + 1 file changed, 1 insertion(+) diff --git a/org-transclusion.el b/org-transclusion.el index ef6f6d0..4deb852 100644 --- a/org-transclusion.el +++ b/org-transclusion.el @@ -295,6 +295,7 @@ Org mode's caching relies upon modification hooks to function." (declare (debug t) (indent 0)) (let ((modified (make-symbol "modified"))) `(let* ((,modified (buffer-modified-p)) + (buffer-undo-list t) (inhibit-read-only t)) (unwind-protect (progn