Mercurial > emacs
changeset 97636:6fab4ff7571d
(dired-buffer-stale-p): Do not revert buffer that can be written.
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Sat, 23 Aug 2008 08:01:36 +0000 |
parents | eb8c3a9e1565 |
children | bb13c7f1e864 |
files | lisp/dired.el |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/dired.el Sat Aug 23 03:48:06 2008 +0000 +++ b/lisp/dired.el Sat Aug 23 08:01:36 2008 +0000 @@ -717,6 +717,9 @@ (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)