all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: have dired always refresh on changed disk
Date: Sat, 27 Sep 2014 15:23:34 +0200	[thread overview]
Message-ID: <87eguxtcx5.fsf@debian.uxu> (raw)
In-Reply-To: mailman.9779.1411789931.1147.help-gnu-emacs@gnu.org

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


  parent reply	other threads:[~2014-09-27 13:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26 19:38 have dired always refresh on changed disk Emanuel Berg
2014-09-26 20:17 ` John Mastro
     [not found] ` <mailman.9750.1411762663.1147.help-gnu-emacs@gnu.org>
2014-09-26 21:39   ` Emanuel Berg
2014-09-27  3:19   ` Emanuel Berg
2014-09-27  3:51     ` John Mastro
     [not found]     ` <mailman.9779.1411789931.1147.help-gnu-emacs@gnu.org>
2014-09-27 12:51       ` Emanuel Berg
2014-09-27 14:18         ` Robert Thorpe
2014-09-27 13:23       ` Emanuel Berg [this message]
2014-09-27 23:01         ` John Mastro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eguxtcx5.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.