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 16:49:33 +0600 Message-ID: <87lheyltqa.fsf@openmailbox.org> References: <87y4j1oy87.fsf@openmailbox.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 1435834464 8886 80.91.229.3 (2 Jul 2015 10:54:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 10:54:24 +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 12:54:13 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 1ZAc8B-0006BW-GT for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 12:54:11 +0200 Original-Received: from localhost ([::1]:35859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAc8A-0003Z3-Ni for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 06:54:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAc86-0003Yu-PR for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 06:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAc82-0001Nn-Nh for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 06:54:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAc82-0001NT-KG for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 06:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZAc81-0006bY-Vz for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 06:54:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87y4j1oy87.fsf@openmailbox.org> Resent-From: Mark Karpov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jul 2015 10:54:01 +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.143583438425287 (code B ref 20943); Thu, 02 Jul 2015 10:54:01 +0000 Original-Received: (at 20943) by debbugs.gnu.org; 2 Jul 2015 10:53:04 +0000 Original-Received: from localhost ([127.0.0.1]:36993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAc75-0006Zm-Ci for submit@debbugs.gnu.org; Thu, 02 Jul 2015 06:53:03 -0400 Original-Received: from smtp1.openmailbox.org ([62.4.1.35]:38121) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAc72-0006ZK-Fv for 20943@debbugs.gnu.org; Thu, 02 Jul 2015 06:53:01 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 14FA2200387; Thu, 2 Jul 2015 12:52:59 +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:message-id:date:date:subject:subject:from:from :received; s=openmailbox; t=1435834377; bh=FYwU9/Jyz2t682Wz8NS9W r1fZwQ34xDpGFEwtgWE1NQ=; b=mSBswd6G8JttRU6capcWyVDgRM5GF9fwgQ2zt i1CFsDeQIpl7nV5vGKbgDLhBb65zTAfb7cgCDOzBVdYLufzcsYjYFMxnYXawjYp6 rFjOsd91ZhY7DaYpILOH7X8tbpRIPSUFlnb6f/E1XnLrL1ifcM68ZqaMtv8wNzm5 UHaUHw= 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 1JW9uz8huJBH; Thu, 2 Jul 2015 12:52:57 +0200 (CEST) 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:104607 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?