From: Martin Rudalics Date: Sat, 23 Aug 2008 08:03:25 +0000 (+0000) Subject: (dired-buffer-stale-p): Do not revert buffer that can be written. X-Git-Tag: emacs-pretest-23.0.90~3345 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=85a3be15356dceb7fe0a42ae5ad2a1d36e45732d;p=emacs.git (dired-buffer-stale-p): Do not revert buffer that can be written. --- 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)