[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#457: wdired and auto-revert-mode

From: martin rudalics
Subject: bug#457: wdired and auto-revert-mode
Date: Sun, 03 Aug 2008 13:45:42 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> Changing to wdired should temporarily turn off `auto-revert-mode' if
> it was enabled in the corresponding dired buffer. It is very
> frustrating when the buffer reverts while editing file names.

Could you please try whether the attached patch handles the problem.

Thanks, martin.
*** dired.el.~1.406.~   2008-07-30 09:30:57.453125000 +0200
--- dired.el    2008-08-03 10:43:25.921875000 +0200
*** 717,722 ****
--- 717,725 ----
      (and (stringp dirname)
         (not (when noconfirm (file-remote-p dirname)))
         (file-readable-p dirname)
+        ;; Don't auto-revert when the dired buffer can be currently
+        ;; written by the user (as in `wdired-mode', see bug#457).
+        buffer-read-only
         (dired-directory-changed-p dirname))))
  ;; Separate function from dired-noselect for the sake of dired-vms.el.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]