Problem: Emacs hg-mode can override VC keys

P V pavv at operamail.com
Fri Sep 2 13:22:02 CDT 2005


----- Original Message -----
From: "Bryan O'Sullivan" <bos at serpentine.com>
To: "P V" <pavv at operamail.com>
Subject: Re: Problem: Emacs hg-mode can override VC keys
Date: Thu, 01 Sep 2005 13:17:42 -0700

> 
> On Thu, 2005-09-01 at 20:50 +0100, P V wrote:
> 
> > I really would like to solve this and be able to use Mercurial in
> > Emacs.  If it doesn't work out, that's not ideal but OK, I can
> > maintain a private fork and keep quiet. :)
> 
> If you want to refactor the code so that there's a library that contains
> code common to mercurial.el and vg-hg.el, that would be a reasonable way
> forward.
> 
> 	<b

Well, the library is mercurial.el.  I was thinking:
(if (boundp 'vc-handled-backends)
    ;; modular VC integration, ~70 lines
  ;; keybindings to overload non-modular VC, a few dozen lines

Either or both of those could then be the separate Emacs/XEmacs files in your idea.

Then there are (I think) two things I factored out into common
functions. And the modeline stuff in a few places, which would have to
be conditionalized (possibly just define an empty function when
modular VC?) or something.

-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 8 at http://www.opera.com

Powered by Outblaze



More information about the Mercurial mailing list