From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.devel Subject: Re: how to `register' vc-hg-region-history in vc-region-history? Date: Thu, 18 Jan 2018 17:14:14 +0100 Message-ID: <87wp0fywix.fsf@mat.ucm.es> References: <87po67qm2l.fsf@mat.ucm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516291969 18608 195.159.176.226 (18 Jan 2018 16:12:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2018 16:12:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 18 17:12:44 2018 Return-path: Envelope-to: ged-emacs-devel@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 1ecCnt-0004Co-SY for ged-emacs-devel@m.gmane.org; Thu, 18 Jan 2018 17:12:38 +0100 Original-Received: from localhost ([::1]:39413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecCpt-00087p-KV for ged-emacs-devel@m.gmane.org; Thu, 18 Jan 2018 11:14:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecCph-00086A-Aq for emacs-devel@gnu.org; Thu, 18 Jan 2018 11:14:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecCpd-0002qz-Cx for emacs-devel@gnu.org; Thu, 18 Jan 2018 11:14:29 -0500 Original-Received: from [195.159.176.226] (port=53407 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecCpd-0002qC-5x for emacs-devel@gnu.org; Thu, 18 Jan 2018 11:14:25 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ecCnb-00039h-3d for emacs-devel@gnu.org; Thu, 18 Jan 2018 17:12:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 27 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:JOrSWPC9953z1Tq62dmfGwh9hmk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222078 Archived-At: >>> "Stefan" == Stefan Monnier writes: > Uwe Brauer writes: >> Seems a natural generalization of vc-git-region-history However I don't see >> how to tell vc-region-history to tell that the new function now >> exists. > VC automatically discovers that. But it also remembers what it failed > to find, os if you had tried vc-region-history in the same session > before defining that function, you need to > (put 'HG 'vc-functions nil) That is what I was looking for. I can test my function now. But alas, I don't understand enough of git. The git function has the following call (vc-call-backend 'hg 'diff file "HEAD" nil (current-buffer)) Mercurial has no HEAD as part of a command. Would that be tip for mercurial? What do the vc-hg.el authors say?