emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh.exe needed to bootstrap on Windows?


From: Dan Nicolaescu
Subject: Re: sh.exe needed to bootstrap on Windows?
Date: Mon, 16 Jul 2007 14:30:32 -0700

Eli Zaretskii <address@hidden> writes:

  > > Cc: "Juanma Barranquero" <address@hidden>, address@hidden
  > > From: Dan Nicolaescu <address@hidden>
  > > Date: Mon, 16 Jul 2007 14:01:16 -0700
  > > 
  > >   >       (setq vc-bzr-version
  > >   >             (let ((s (shell-command-to-string
  > >   >                       (concat (shell-quote-argument vc-bzr-program)
  > >   >                               " --version"))))
  > >   >               (if (string-match 
"\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)$" s)
  > >   >                   (list (string-to-number (match-string 1 s))
  > >   >                         (string-to-number (match-string 2 s))
  > >   >                         (string-to-number (match-string 3 s)))
  > >   >                 '(0 0 0))))))
  > > 
  > > What calls this function? It seems that it can be called when
  > > vc-bzr.el is loaded, but why is vc-bzr loaded? I assume you don't use
  > > bzr for emacs...
  > 
  > No, I don't use bzr.  I didn't actually step through the code, but it
  > looks to me that this part of vc-hooks.el:vc-registered:
  > 
  >       ;; There is no file name handler.
  >       ;; Try vc-BACKEND-registered for each handled BACKEND.
  >       (catch 'found
  >     (let ((backend (vc-file-getprop file 'vc-backend)))
  >       (mapcar
  >        (lambda (b)
  >          (and (vc-call-backend b 'registered file)
  >               (vc-file-setprop file 'vc-backend b)
  >               (throw 'found t)))
  >        (if (or (not backend) (eq backend 'none))
  >            vc-handled-backends
  >          (cons backend vc-handled-backends))))
  > 
  > Tries every backend in sight until it finds one.  

That is fine.

  > Am I missing something?

Don't know, vc-BACKEND-registered should be an autoloaded function
that should not cause vc-BACKEND.el to be loaded.  So this code should
not be the cause of vc-bzr.el being loaded.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]