[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e9bdf3d4bd 1/2: Display the Dired buffer as unmodified initially
From: |
Eli Zaretskii |
Subject: |
master e9bdf3d4bd 1/2: Display the Dired buffer as unmodified initially |
Date: |
Sat, 29 Oct 2022 09:17:35 -0400 (EDT) |
branch: master
commit e9bdf3d4bd5aa2be7448b0f7a968af5abb058db0
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Display the Dired buffer as unmodified initially
* lisp/dired.el (dired-readin): Make sure a newly-created Dired
buffer is shown as unmodified. (Bug#58863)
---
lisp/dired.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/dired.el b/lisp/dired.el
index 85a7131570..128770105b 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1457,9 +1457,9 @@ wildcards, erases the buffer, and builds the subdir-alist
anew
(if (eq (car attributes) t)
(set-visited-file-modtime (file-attribute-modification-time
attributes))))
- (set-buffer-modified-p nil)
(when dired-make-directory-clickable
(dired--make-directory-clickable))
+ (set-buffer-modified-p nil)
;; No need to narrow since the whole buffer contains just
;; dired-readin's output, nothing else. The hook can
;; successfully use dired functions (e.g. dired-get-filename)