From: Alexandre Julliard Date: Sat, 03 Mar 2007 10:32:54 GMT Subject: Re: [PATCH 5/7] Try to do things in the right order Message-ID: <87ps7qty5l.fsf@wine.dyndns.org> In-Reply-To: <15303.1172917192@localhost> Xavier Maillard writes: > @@ -35,8 +36,14 @@ > (require 'vc) > (require 'cl)) > > -;; Add it automatically > -(add-to-list 'vc-handled-backends 'GIT) > +;; HACK: clear up the cache to force vc-call to check again and > +;; discover new functions when we reload this file. > +(put 'GIT 'vc-functions nil) > + > +;; Add it automatically when loading vc > +;; FIXME: should be directly put into vc.el > +(eval-after-load "vc" > + '(add-to-list 'vc-handled-backends 'GIT)) That's ugly. Simply recommending that users set vc-handled-backends in their .emacs is easier and cleaner, I still don't see why you want to change it. -- Alexandre Julliard julliard@winehq.org