1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

(dired-buffer-stale-p): Do not revert buffer that can be written.

This commit is contained in:
Martin Rudalics 2008-08-23 08:03:25 +00:00
parent 5827950329
commit 85a3be1535
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-08-23 Martin Rudalics <rudalics@gmx.at>
* dired.el (dired-buffer-stale-p): Do not revert buffer that
can be written.
2008-08-23 Glenn Morris <rgm@gnu.org>
* dired-x.el (dired-guess-shell-alist-default): Add .mp3 and .ogg.

View File

@ -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)