From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Karpov Newsgroups: gmane.emacs.bugs Subject: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd Date: Sat, 04 Jul 2015 14:49:49 +0600 Message-ID: <87egkoi9xu.fsf@openmailbox.org> References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> <87twtl1axb.fsf@openmailbox.org> <83r3ooxr21.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1436000066 12689 80.91.229.3 (4 Jul 2015 08:54:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jul 2015 08:54:26 +0000 (UTC) Cc: 20943@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 04 10:54:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZBJDA-0004ru-0E for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 10:54:12 +0200 Original-Received: from localhost ([::1]:43664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBJD9-0001FG-8W for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 04:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBJD5-0001F0-6V for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2015 04:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBJD1-0005GK-61 for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2015 04:54:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBJD1-0005G9-2F for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2015 04:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZBJD0-0002d2-IQ for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2015 04:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Karpov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jul 2015 08:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20943-submit@debbugs.gnu.org id=B20943.143600000510032 (code B ref 20943); Sat, 04 Jul 2015 08:54:02 +0000 Original-Received: (at 20943) by debbugs.gnu.org; 4 Jul 2015 08:53:25 +0000 Original-Received: from localhost ([127.0.0.1]:39207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBJCO-0002bi-8s for submit@debbugs.gnu.org; Sat, 04 Jul 2015 04:53:24 -0400 Original-Received: from smtp18.openmailbox.org ([62.4.1.52]:36841) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBJCL-0002bY-8M for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 04:53:22 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 25A262E007B; Sat, 4 Jul 2015 10:53:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1435999998; bh=TtAmMPAsx0Q0JF6FAjSjp+48YT2X6ohJGGmKKVPjuvo=; b= Nby0uHnGs0nC5Ug42EqBsGFGmZyYZ4RmyNQnTR4V07pWlaiyRX4AYFTC/KAwW/Zd aZ9Dn20fk6mn+Yq6MLOrfWOBLVxSBLLLDmsSCRtkyfPnUs32TxJQQqhMjjyWzVzL DdKa+/oSTIxSHEztvLqeQESMsscfkYKfZwPxlJE12do= X-Virus-Scanned: amavisd-new at openmailbox.org Original-Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NMNl8G1m4GZd; Sat, 4 Jul 2015 10:53:18 +0200 (CEST) In-Reply-To: <83r3ooxr21.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jul 2015 11:31:02 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104673 Archived-At: > Can you show a recipe for reproducing this? Sure. 1. emacs -Q 2. Evaluate the following: (setq 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 =E2=80=98m=E2=80=99 key. 5. Press =E2=80=98C=E2=80=99 and confirm copying. 6. Files will be copied into another buffer. It's best if the buffer has some directories in it. My =E2=80=98dired-listing-switches=E2=80=99 tell= =E2=80=98ls=E2=80=99 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 =E2=80=98g=E2=80=99 now and see h= ow 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 =E2=80=98dired-listing-switches= =E2=80=99 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 =E2=80=98auto-revert-handler= =E2=80=99, thus this state won't last longer than =E2=80=98auto-revert-interval=E2=80=99. I= don't think it's bad, but I think it's better to mention this consideration here.