From 85a3be15356dceb7fe0a42ae5ad2a1d36e45732d Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Sat, 23 Aug 2008 08:03:25 +0000 Subject: [PATCH] (dired-buffer-stale-p): Do not revert buffer that can be written. --- lisp/ChangeLog | 5 +++++ lisp/dired.el | 3 +++ 2 files changed, 8 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 99b2afb2a2c..56631084db2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-08-23 Martin Rudalics + + * dired.el (dired-buffer-stale-p): Do not revert buffer that + can be written. + 2008-08-23 Glenn Morris * dired-x.el (dired-guess-shell-alist-default): Add .mp3 and .ogg. diff --git a/lisp/dired.el b/lisp/dired.el index a7388ddc08e..3102a6d2768 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -717,6 +717,9 @@ for a remote directory. This feature is used by Auto Revert Mode." (and (stringp dirname) (not (when noconfirm (file-remote-p dirname))) (file-readable-p dirname) + ;; Do not auto-revert when the dired buffer can be currently + ;; written by the user as in `wdired-mode'. + buffer-read-only (dired-directory-changed-p dirname)))) (defun dired-internal-noselect (dir-or-list &optional switches mode) -- 2.39.5