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: Wed, 01 Jul 2015 13:23:01 +0600 Message-ID: <87wpyk9wa2.fsf@openmailbox.org> References: <87y4j1oy87.fsf@openmailbox.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435735647 3506 80.91.229.3 (1 Jul 2015 07:27:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2015 07:27:27 +0000 (UTC) To: <20943@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 01 09:27:15 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 1ZACQK-0005cT-Sm for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jul 2015 09:27:13 +0200 Original-Received: from localhost ([::1]:50035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZACQJ-0001GI-Pc for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jul 2015 03:27:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZACQG-0001G5-Ar for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2015 03:27:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZACQC-0008FO-Ec for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2015 03:27:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZACQC-0008FI-At for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2015 03:27:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZACQA-0003LU-PB for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2015 03:27:03 -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: Wed, 01 Jul 2015 07:27: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.143573558612814 (code B ref 20943); Wed, 01 Jul 2015 07:27:02 +0000 Original-Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 07:26:26 +0000 Original-Received: from localhost ([127.0.0.1]:35087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZACPZ-0003Kb-KZ for submit@debbugs.gnu.org; Wed, 01 Jul 2015 03:26:26 -0400 Original-Received: from smtp29.openmailbox.org ([62.4.1.63]:35079) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZACPX-0003KS-JI for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 03:26:24 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id C3B822E0075 for <20943@debbugs.gnu.org>; Wed, 1 Jul 2015 09:26:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received; s=openmailbox; t= 1435735581; bh=6dIp4Nf4gENg+U5PLKm4Hnp1WyFkiahsBm4gdRgfg4g=; b=G m0Lh6XHMDPJDsikfHfi2mjWcObSUcO4QxPkPbpgevqtsW/KaJeZI4fveWWqAPHnM ao8wT3XvDP6HCL5GFPU7zrTJfd7OtMsEiPpT2Ch6MzYEMyJCKuICQjC3S5tn6a49 N/QS3PbQ3g9XJW+1TsK9UYgGQExlxxsrvKY9d+L7TQ= 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 p2rtVM3bKEzl for <20943@debbugs.gnu.org>; Wed, 1 Jul 2015 09:26:21 +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:104563 Archived-At: OK, I've spent an hour testing it, trying to find some way to reliably reproduce the problem. It's quite random, but I've found a way to reproduce it in about 50% of cases. > Does it happen with some specific type of directories, like those > mounted in some special way? No, I can reproduce this in my home directory, which is not mounted in any unusual way. > Furthermore, which kind of changes of the directory are you referring > to? Reading `dired-buffer-stale-p', the dired buffer shall be reverted > only if there is a new file in the directory, or a file is > removed. Just changing (the timestamp of) a file in the directory > shall not revert the dired buffer. By changes I mean deletion of files or creation of files, see below. How to reproduce: 1. emacs -Q 2. Open some directory in Dired. 3. Invoke shell or Emacs shell. Now I think this bug is most likely happens when directory is changed in an automated way (maybe I'm mistaken). Personally I use a script that transforms some files (script written in Python, splits music files according to CUE file + some magic, but it doesn't really matter). That means that some files are created and old files are deleted. 4. Once I press C-m or Enter, there are two possible cases (each having about 50 % probability): either all changes are reflected in Dired buffer (that's in other window, window in Emacs sense of the word), or all the changes go invisible and I have to switch to Dired buffer and press g to see results. That's pretty much all I can say. Not very helpful, but this is how I can more or less reliably reproduce it. > A second thought: auto-reverting dired buffers has been changed to use > file notifications. Does it make a difference, when you eval the form > (setq auto-revert-use-notify nil) ? I'll test it as soon as I can.