From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: have dired always refresh on changed disk
Date: Sat, 27 Sep 2014 16:01:04 -0700 [thread overview]
Message-ID: <CAOj2CQTAyk3W5K4pZBNVGXPa=yyhiRTZRFqS_xaqVP5Gon2caw@mail.gmail.com> (raw)
In-Reply-To: <87eguxtcx5.fsf@debian.uxu>
Emanuel Berg <embe8573@student.uu.se> wrote:
> 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.
Interesting, I wasn't aware of `dired-auto-revert-buffer'.
By default, `auto-revert-mode' checks the underlying file (based on time
stamps) every 5 seconds (see `auto-revert-interval'). That's worked well
in my experience but obviously YMMV.
I'm still not sure what caused the problem you mentioned earlier - your
cursor jumping around in a buffer you were editing. That would indeed be
a deal breaker, but `auto-revert-mode' "shouldn't" cause it. The only
time when `auto-revert-mode' modifies the buffer is when the file has
changed on disk. So if the file isn't being changed (apart from your own
saves) that shouldn't happen. Actually, I haven't noticed cursor jumping
even when the underlying file /is/ being modified, though I can see how
it could happen (or be perceived that way).
--
John
prev parent reply other threads:[~2014-09-27 23:01 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
2014-09-27 23:01 ` John Mastro [this message]
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='CAOj2CQTAyk3W5K4pZBNVGXPa=yyhiRTZRFqS_xaqVP5Gon2caw@mail.gmail.com' \
--to=john.b.mastro@gmail.com \
--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.