all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: Re: how to `register' vc-hg-region-history in vc-region-history?
Date: Thu, 18 Jan 2018 17:14:14 +0100	[thread overview]
Message-ID: <87wp0fywix.fsf@mat.ucm.es> (raw)
In-Reply-To: jwvlggvcjdp.fsf-monnier+gmane.emacs.devel@gnu.org

>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:

   > Uwe Brauer <oub@mat.ucm.es> 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?




  parent reply	other threads:[~2018-01-18 16:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-18 14:27 how to `register' vc-hg-region-history in vc-region-history? Uwe Brauer
2018-01-18 14:46 ` Dmitry Gutov
2018-01-18 14:51 ` Stefan Monnier
2018-01-18 15:13   ` Stefan Monnier
2018-01-18 16:14   ` Uwe Brauer [this message]
2018-01-19  1:47     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wp0fywix.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.