branch: externals/org-modern commit 44efad0ea9a06cb74e8e31658f0ea4e8de996948 Author: JD Smith <93749+jdtsm...@users.noreply.github.com> Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>
Do not advise org-indent-region to strip properties It does not always change the region if it is properly indented already. --- org-modern-indent.el | 2 -- 1 file changed, 2 deletions(-) diff --git a/org-modern-indent.el b/org-modern-indent.el index 62a838ce16..ccc8e62d0e 100644 --- a/org-modern-indent.el +++ b/org-modern-indent.el @@ -346,7 +346,6 @@ To be added to `org-indent-post-buffer-init-functions'." (progn (advice-add 'org-indent-refresh-maybe :around #'omi/-refresh-maybe-watch) - (advice-add 'org-indent-region :before #'omi/-strip-display) (cond ;; already registered before, just toggle (omi/-init (omi/-init (current-buffer))) @@ -358,7 +357,6 @@ To be added to `org-indent-post-buffer-init-functions'." (cl-pushnew 'omi/display (alist-get 'display char-property-alias-alist))) ;; Disabling - (advice-remove 'org-indent-region #'omi/-strip-display) (advice-remove 'org-indent-refresh-maybe #'omi/-refresh-maybe-watch) (remove-hook 'before-change-functions #'omi/-before-change t) (remove-hook 'after-change-functions #'omi/-after-change t)