From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#21559: [PATCH] autorevert: Wait a while before calling vc-find-file-hook Date: Wed, 28 Oct 2015 15:45:25 +0100 Message-ID: <87k2q7127u.fsf@gmx.de> References: <1445885018-17451-1-git-send-email-ben@smart-cactus.org> <1445885018-17451-2-git-send-email-ben__31073.4246545055$1445885089$gmane$org@smart-cactus.org> <87fv0wogyx.fsf@gmx.de> <87a8r3w6dw.fsf@smart-cactus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446044161 27118 80.91.229.3 (28 Oct 2015 14:56:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2015 14:56:01 +0000 (UTC) Cc: 21559@debbugs.gnu.org To: Ben Gamari Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 28 15:55:51 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 1ZrS8i-0007hR-Ra for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 15:55:49 +0100 Original-Received: from localhost ([::1]:38550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrS8i-00013p-CS for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 10:55:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRzK-0002nl-3f for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:46:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrRzH-0006f8-4Y for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:46:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRzH-0006f4-1k for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZrRzG-0003oz-N5 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Oct 2015 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21559-submit@debbugs.gnu.org id=B21559.144604353214622 (code B ref 21559); Wed, 28 Oct 2015 14:46:02 +0000 Original-Received: (at 21559) by debbugs.gnu.org; 28 Oct 2015 14:45:32 +0000 Original-Received: from localhost ([127.0.0.1]:42645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrRym-0003nm-1d for submit@debbugs.gnu.org; Wed, 28 Oct 2015 10:45:32 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54743) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrRyj-0003nb-It for 21559@debbugs.gnu.org; Wed, 28 Oct 2015 10:45:30 -0400 Original-Received: from detlef.gmx.de ([87.146.60.252]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0Lh7PL-1aFFHl0nrT-00oVyF; Wed, 28 Oct 2015 15:45:26 +0100 In-Reply-To: <87a8r3w6dw.fsf@smart-cactus.org> (Ben Gamari's message of "Wed, 28 Oct 2015 12:59:39 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:R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k1z 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: 208.118.235.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:108103 Archived-At: Ben Gamari writes: > Hi Michael, Hi Ben, >> Have you considered another solution, maybe by providing vc(-git) >> specific buffer-stale-function and revert-buffer? This would be much >> more in the spirit how autorevert is supposed to work. And this would >> simplify maintenance, > > Could you perhaps describe in a bit detail what the semantics of these > functions would be? I'm not entirely sure I understand what you are > proposing. As starting point you might read about `revert-buffer-function' in (info "(elisp)Reverting") and about `buffer-stale-function' in (info "(emacs)Supporting additional buffers") See also in a dired buffer the values for both variables, and how the functions work for dired. >> when git changes its behaviour, and we need to adapt vc-git >> accordingly. > > You are more optimistic than me on whether git will be fixed ;) I have no special opinion about git. I just use it, without being impressed. > Cheers, > > - Ben Best regards, Michael.