[Top][All Lists]

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

bug#20943: 25.0.50; Dired buffers are not always auto-reverterd

From: Mark Karpov
Subject: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd
Date: Sat, 04 Jul 2015 14:49:49 +0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Can you show a recipe for reproducing this?


1. emacs -Q

2. Evaluate the following:

 dired-dwim-target      t        ; guess target directory
 dired-listing-switches "-GAlh --group-directories-first")

3. Open two Dired buffers side-by-side.

4. Mark some files in the first buffer with ‘m’ key.

5. Press ‘C’ and confirm copying.

6. Files will be copied into another buffer. It's best if the buffer has
   some directories in it. My ‘dired-listing-switches’ tell ‘ls’ to list
   directories first. But chances are newly inserted files won't respect
   this. Thus we get situation that I've described in my previous
   message. For the sake of clarity press ‘g’ now and see how files are
   reordered. Moral here is that you generally cannot (I may be mistaken
   here, this is just my opinion) reliably guess true order of files
   without regeneration of Dired buffer. Well, I don't really know how
   it works in details, you could analyze ‘dired-listing-switches’ and
   try to emulate it, but is it worth the trouble?

I should note that concept of modified buffer is not really applicable
to Dired buffer, because it usually cannot contain anything that doesn't
exists in directory in your system. It's especially true if auto-revert
will work for modified buffers. Any time Dired buffer gets modified it
will be reverted by subsequent invocation of ‘auto-revert-handler’, thus
this state won't last longer than ‘auto-revert-interval’. I don't think
it's bad, but I think it's better to mention this consideration here.

reply via email to

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