From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Gamari Newsgroups: gmane.emacs.bugs Subject: bug#21559: [PATCH] autorevert: Wait a while before calling vc-find-file-hook Date: Wed, 28 Oct 2015 12:59:39 +0100 Message-ID: <87a8r3w6dw.fsf@smart-cactus.org> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1446033692 9419 80.91.229.3 (28 Oct 2015 12:01:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2015 12:01:32 +0000 (UTC) Cc: 21559@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 28 13:01:18 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 1ZrPPp-0002KG-DD for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 13:01:17 +0100 Original-Received: from localhost ([::1]:37260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrPPo-0003iy-DW for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 08:01:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrPPh-0003ip-5v for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 08:01:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrPPb-0004Q3-Jn for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 08:01:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrPPb-0004PZ-DQ for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 08:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZrPPa-0006N4-9c for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 08:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ben Gamari Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Oct 2015 12:01: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.144603362524387 (code B ref 21559); Wed, 28 Oct 2015 12:01:02 +0000 Original-Received: (at 21559) by debbugs.gnu.org; 28 Oct 2015 12:00:25 +0000 Original-Received: from localhost ([127.0.0.1]:41270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrPOg-0006Jh-4g for submit@debbugs.gnu.org; Wed, 28 Oct 2015 08:00:24 -0400 Original-Received: from mail.smart-cactus.org ([54.187.36.80]:41686) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrPOb-0006Ia-Ka for 21559@debbugs.gnu.org; Wed, 28 Oct 2015 08:00:03 -0400 Original-Received: from localhost.localdomain (HSI-KBW-149-172-43-78.hsi13.kabel-badenwuerttemberg.de [149.172.43.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: ben@smart-cactus.org) by mail.smart-cactus.org (Postfix) with ESMTPSA id 6A95046EF2; Wed, 28 Oct 2015 11:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.smart-cactus.org; s=mail; t=1446032900; bh=qP4z/b0aMWlTEUl3brEQ9C65OECc6o11DW0fw5ktzeg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=P08gyisEFnlZizH/bjXO8yjCmV6L04Y2loy9qz68EzGlxdgBhFx3jf4P0Vn6k6SWT SDNlrmQ9/IfM6f40oELIm819yKIbdOHEjte0KH5vbcJxH/uL4qJlDg5KKMn5QbeiCQ P/S6LYfwUzg31tIaagh6jHxxqJD9oki3i1pC+DpI= In-Reply-To: <87fv0wogyx.fsf@gmx.de> User-Agent: Notmuch/0.21~rc3+6~g4acbc1f (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-pc-linux-gnu) 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:108100 Archived-At: --=-=-= Content-Type: text/plain Hi Michael, Michael Albinus writes: > [removing emacs-devel, discussion in one ML is sufficient] > Okay. Works for me. > Ben Gamari writes: > > Hi Ben, > >> This provides a resolution for Bug #21559. > > Thanks for the patch. > > But as I said already, I'm not happy to insert so much hard-wired vc > related operations into autorevert.el. And this is triggered just by > git, IIUC the other vc backends do not suffer from this problem. Fair enough. > 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. > 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 ;) Thanks for your feedback! Cheers, - Ben --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWMLirAAoJEHPt6ejPuu8B+BMH/24+IP6C2fG1PbkSt4Coy1i6 idc/ezoo7Sh4M6PkncynslCUh77Gga0bHCrNJhBUIf70u0TKAwc+sqwKOq7In4Ws xECZ4rIARsYzUJ64WS1yKmZNWs6G/EWlkUtmhdyjAixioNSUCh6N0uSSumOCOoOG nNLeF6tO97qy5KAiwq3cO2SzlZWuGjV//NiprpyQBRQx73rIPiv1ibvLrYRB8TNX sCYoZFgI2PTwvuh/AInvH3iMF9Im/TLaQ44PrTCbdC2S5Ol7NQIJZKscFn/sS6L2 SQF0eDXJ8uQz2r4rNcYZeh1JoAmv9u9S0gs/gydxBcEE5FcRlic4jCUlfTZt8C4= =0IUq -----END PGP SIGNATURE----- --=-=-=--