help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: have dired always refresh on changed disk


From: Emanuel Berg
Subject: Re: have dired always refresh on changed disk
Date: Sat, 27 Sep 2014 15:23:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

I have found that

    (setq dired-auto-revert-buffer 'dired-directory-changed-p)

does partly what I want. It reverts when a dired buffer
is reselected (e.g., find-file and then a dir that
already has a buffer) and the dir has changed on disk.

This is not autorevert, which I consider not as good
(at least in this context) because

    Note that this is not the same as
    `auto-revert-mode' that periodically reverts at
    specified time intervals.

    from (describe-variable 'dired-auto-revert-buffer)

But: What it looks like, only (?) the dired commands
and find-file seem to be tuned in to this. I often go
to dired buffers from the `buffer-menu', or the keys I
have for `switch-to-buffer' (and even `other-window').

Of coures, I can put in tests if they lead to a dired
buffer, if the dir has changed, and so on.

-- 
underground experts united


reply via email to

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