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: Thu, 02 Jul 2015 14:02:02 +0600 Message-ID: <87r3ort2bp.fsf@openmailbox.org> References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.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 1435824382 11500 80.91.229.3 (2 Jul 2015 08:06:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 08:06:22 +0000 (UTC) To: Eli Zaretskii , <20943@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 02 10:06:10 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 1ZAZVa-0002lD-D4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 10:06:10 +0200 Original-Received: from localhost ([::1]:35140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAZVZ-0000cq-QS for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 04:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAZVW-0000cP-3Q for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 04:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAZVS-00042p-PC for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 04:06:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAZVS-00042l-Kz for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 04:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZAZVS-0002XH-Ah for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 04:06: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: Thu, 02 Jul 2015 08:06: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.14358243329707 (code B ref 20943); Thu, 02 Jul 2015 08:06:02 +0000 Original-Received: (at 20943) by debbugs.gnu.org; 2 Jul 2015 08:05:32 +0000 Original-Received: from localhost ([127.0.0.1]:36890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAZUx-0002WU-9U for submit@debbugs.gnu.org; Thu, 02 Jul 2015 04:05:31 -0400 Original-Received: from smtp11.openmailbox.org ([62.4.1.45]:34978) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAZUv-0002WJ-E4 for 20943@debbugs.gnu.org; Thu, 02 Jul 2015 04:05:30 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 342AB201B81; Thu, 2 Jul 2015 10:05:28 +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=1435824326; bh=FYwU9/Jyz2t682Wz8NS9Wr1fZwQ34xDpGFEwtgWE1NQ=; b= DJh3cIFxyrGifE3mwLWvjj9/7nbdBrGftn+xat8gcOdp9BOmFMyg1Ir//vAbUixV v3qfEAlLcN1lLBM6KCBu4IeFOkphoLvVr1LZTFPND/6FXfkP6QsCZjSh3D5euhdT zJSoT/duMfSiDwpWEZtC7afkJ99xA6zWQwHnaQKiqAQ= X-Virus-Scanned: amavisd-new at openmailbox.org Original-Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YBX9eJMyhjg2; Thu, 2 Jul 2015 10:05:26 +0200 (CEST) In-Reply-To: <831tgr3np9.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 01 Jul 2015 18:24:50 +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:104599 Archived-At: > Are all of the changes in the same directory? Yes. > Also, can you show the list of changes that script does in a single > invocation, in terms of how many files are created, how many deleted, > and in which order? Typically it's something like this: Initial state: Something.cue Something.ape Changes: Created =E2=80=9801 Track Title.flac=E2=80=99 Created =E2=80=9802 Another Track Title.flac=E2=80=99 =E2=80=A6 Created =E2=80=98NN Track Title.flac=E2=80=99 Deleted =E2=80=98Something.cue=E2=80=99 Deleted =E2=80=98Something.ape=E2=80=99 > You need to change that via customize-variable, because this option > has a non-trivial setting function. Did you do that? No, I didn't know that until now. See results of new experiments below. > For the record, I can't reproduce any of this. I tried both with file > notifications and without them, and I could never see a change that > was skipped. It's sort of bug that is not easy to catch. I've noticed it some time ago in different circumstances, but ignored it, because it seemed too minor. > When this happens to you, i.e. in those 50% of cases, did you try > waiting for some time for the changes to be reflected in the buffer? I don't know how long I'm supposed to wait, it certainly takes quite a while. A couple days ago I started the script, then went away from my laptop to do other things, then when I returned contents of directory were still =E2=80=9Cfrozen=E2=80=9D. I don't think waiting can help here. > Also, if you disable auto-revert-use-notify, reproduce the problem > (i.e. run the script and observe no changes), and then type the > following > > M-: (dired-directory-changed-p DIRNAME) RET > > where DIRNAME is the absolute file name of the directory shown by > Dired, what does Emacs show? If it shows nil, please step through the > body of dired-directory-changed-p, and see why it doesn't see the > directory as changed. (It relies on the time stamp of the directory > -- does that somehow fail to change on your system?) I've set =E2=80=98auto-revert-use-nofity=E2=80=99 like this: (custom-set-variables '(auto-revert-use-notify nil)) Then I managed to reproduce this behavior. After that, I evaluated (dired-directory-changed-p DIRNAME) and result was t. Any ideas what's going on?