From 63e80d4b96c2a411da0beaee8a1e46f116e05e27 Mon Sep 17 00:00:00 2001 From: Ag Ibragimov Date: Thu, 3 Oct 2024 17:09:26 -0500 Subject: [PATCH] [Dired] Prevent dired buffers' modified flag from being changed. fixes #1123 --- src/extra/treemacs-icons-dired.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extra/treemacs-icons-dired.el b/src/extra/treemacs-icons-dired.el index 5574fcf4..21001f1a 100644 --- a/src/extra/treemacs-icons-dired.el +++ b/src/extra/treemacs-icons-dired.el @@ -69,7 +69,8 @@ (treemacs-icon-for-file file)))) (insert icon)) (treemacs-return nil)) - (forward-line 1) )))))) + (forward-line 1)))) + (set-buffer-modified-p nil)))) (defun treemacs-icons-dired--insert-subdir-advice (&rest args) "Advice to Dired & Dired+ insert-subdir commands.