From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#32754: vc-retrieve-tag-hook Date: Mon, 17 Sep 2018 21:49:44 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1537213566 4654 195.159.176.226 (17 Sep 2018 19:46:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2018 19:46:06 +0000 (UTC) To: 32754@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 17 21:46:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1zT8-000160-Hu for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Sep 2018 21:46:02 +0200 Original-Received: from localhost ([::1]:37177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1zVF-00007K-81 for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Sep 2018 15:48:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1zV4-0008VO-Kq for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 15:48:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1zV3-0005rg-Ub for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 15:48:02 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39121) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g1zV3-0005rZ-PY for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 15:48:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g1zV3-0005wv-NM for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 15:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Sep 2018 19:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153721366722844 (code B ref -1); Mon, 17 Sep 2018 19:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Sep 2018 19:47:47 +0000 Original-Received: from localhost ([127.0.0.1]:43379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1zUp-0005wO-Cr for submit@debbugs.gnu.org; Mon, 17 Sep 2018 15:47:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1zUn-0005wB-NX for submit@debbugs.gnu.org; Mon, 17 Sep 2018 15:47:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1zUh-0005Tr-TS for submit@debbugs.gnu.org; Mon, 17 Sep 2018 15:47:40 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45689) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1zUh-0005Ti-QC for submit@debbugs.gnu.org; Mon, 17 Sep 2018 15:47:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1zUh-0008Ll-4Q for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 15:47:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1zUg-0005Rm-Hf for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 15:47:39 -0400 Original-Received: from sinyavsky.aurox.ch ([2a03:2040:2:1b::1]:58878) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1zUg-0005OH-7V for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 15:47:38 -0400 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id BCF062285A for ; Mon, 17 Sep 2018 19:51:20 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= subject:subject:to:from:from:message-id:date:date; s=dkim; t= 1537213880; x=1538077881; bh=iQYciWMHrO/3lfFBeyBb5S+C84Y2mJftenY Az1hiB4A=; b=hoUiW8hVnI6tvwniTHEg/iFrPGLWUfp5iI5ZUG4dg270vWO++mL GGqie8MWyFVqM9fFqkqcG7pPMlkxhtAtJgcPMHp6ot0DG4DI1svLx4oN7FRgwVi+ tPyNifHodyxZcszGbwQo6tazyn5BPcn7t1Y45gYrs2hE9yEU1nDrlwFE= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jpl5hNuAIvGT for ; Mon, 17 Sep 2018 19:51:20 +0000 (UTC) Original-Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 4B7A222858 for ; Mon, 17 Sep 2018 19:51:20 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:150381 Archived-At: We have this hook in vc.el: ;;;###autoload (defcustom vc-checkout-hook nil "Normal hook (list of functions) run after checking out a file. See `run-hooks'." :type 'hook :group 'vc :version "21.1") It does not seem to run when you retrieve a tag or branch with C-x v r with the vc-git backend, and correctly so (I think), as the docstring mentions that it should only run after checking out a file, not a tag or branch. I suggest adding a hook to run at the end of vc-retrieve-tag, named "vc-retrieve-tag-hook".