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-reverted Date: Thu, 09 Jul 2015 21:40:12 +0600 Message-ID: <87zj35s5k3.fsf@openmailbox.org> References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.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 1436456667 17619 80.91.229.3 (9 Jul 2015 15:44:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2015 15:44:27 +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 Thu Jul 09 17:44:16 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 1ZDDzk-0000eI-0G for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 17:44:16 +0200 Original-Received: from localhost ([::1]:40528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDDzj-0007nb-1C for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 11:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDDzb-0007mO-Du for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2015 11:44:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDDzW-00014y-Gh for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2015 11:44:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDDzW-00014u-EU for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2015 11:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZDDzW-0004Zz-0G for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2015 11:44: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, 09 Jul 2015 15:44: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.143645663517584 (code B ref 20943); Thu, 09 Jul 2015 15:44:01 +0000 Original-Received: (at 20943) by debbugs.gnu.org; 9 Jul 2015 15:43:55 +0000 Original-Received: from localhost ([127.0.0.1]:45346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDDzP-0004ZX-3S for submit@debbugs.gnu.org; Thu, 09 Jul 2015 11:43:55 -0400 Original-Received: from smtp24.openmailbox.org ([62.4.1.58]:36567) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDDzN-0004ZP-8B for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 11:43:53 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 4C48A2E01E1; Thu, 9 Jul 2015 17:43:52 +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=1436456630; bh=AhEXHkU+L7xPdYyDyovp9Go1hRfVAm2QRUjvbeW41aI=; b= cZwUuQ7Br0moOPw3l41TvdY7TLXzY0E3bSGx+mBG15fR+MOzhGlPqEdAHf7xLsWn EtgHGHTipyua4XEwzE8Ae4ON1vAeS22z81U61asvWtrU/U3oZhxGrh1BNTZYdF7P bjXhTFzBXIHptVdW64u7a+hTWiE2uKnfDtRQXxkZJTk= 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 d7LLh_MEgfkF; Thu, 9 Jul 2015 17:43:50 +0200 (CEST) In-Reply-To: <83615tv14o.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jul 2015 17:47:35 +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:104858 Archived-At: No, at the end of inserting function should be the following: (when auto-revert-mode (auto-revert-handler)) That's it. This will also check if user wants to autorevert non-file buffers (according to =E2=80=98global-auto-revert-non-file-buffers=E2=80=99= ) and all the stuff. Since such functions edit directory, buffer will be recognized as stale and this will revert it. This is simple, even elegant, I think. This is how I would do it.