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: Eli Zaretskii
Subject: Re: sh.exe needed to bootstrap on Windows?
Date: Tue, 17 Jul 2007 00:19:54 +0300

> 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.  Am I missing
something?




reply via email to

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