diff options
| author | Eli Zaretskii | 2022-10-29 16:02:35 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-10-29 16:02:35 +0300 |
| commit | e9bdf3d4bd5aa2be7448b0f7a968af5abb058db0 (patch) | |
| tree | ee451e13a1fb2aac8b009ae43362f922513bfdf4 | |
| parent | f826f56a413a07eee2782655809e1f5e102c6153 (diff) | |
| download | emacs-e9bdf3d4bd5aa2be7448b0f7a968af5abb058db0.tar.gz emacs-e9bdf3d4bd5aa2be7448b0f7a968af5abb058db0.zip | |
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)
| -rw-r--r-- | lisp/dired.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 85a71315702..128770105b0 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -1457,9 +1457,9 @@ wildcards, erases the buffer, and builds the subdir-alist anew | |||
| 1457 | (if (eq (car attributes) t) | 1457 | (if (eq (car attributes) t) |
| 1458 | (set-visited-file-modtime (file-attribute-modification-time | 1458 | (set-visited-file-modtime (file-attribute-modification-time |
| 1459 | attributes)))) | 1459 | attributes)))) |
| 1460 | (set-buffer-modified-p nil) | ||
| 1461 | (when dired-make-directory-clickable | 1460 | (when dired-make-directory-clickable |
| 1462 | (dired--make-directory-clickable)) | 1461 | (dired--make-directory-clickable)) |
| 1462 | (set-buffer-modified-p nil) | ||
| 1463 | ;; No need to narrow since the whole buffer contains just | 1463 | ;; No need to narrow since the whole buffer contains just |
| 1464 | ;; dired-readin's output, nothing else. The hook can | 1464 | ;; dired-readin's output, nothing else. The hook can |
| 1465 | ;; successfully use dired functions (e.g. dired-get-filename) | 1465 | ;; successfully use dired functions (e.g. dired-get-filename) |