From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sh.exe needed to bootstrap on Windows? Date: Tue, 17 Jul 2007 00:19:54 +0300 Message-ID: References: <200707162101.l6GL1GpJ013563@oogie-boogie.ics.uci.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1184620806 5995 80.91.229.12 (16 Jul 2007 21:20:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2007 21:20:06 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 23:20:04 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IAXz9-0002Fn-7Q for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 23:20:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAXz6-00032q-Qn for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 17:20:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAXz3-00030h-II for emacs-devel@gnu.org; Mon, 16 Jul 2007 17:19:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAXz2-000303-6X for emacs-devel@gnu.org; Mon, 16 Jul 2007 17:19:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAXz1-0002zw-Mx for emacs-devel@gnu.org; Mon, 16 Jul 2007 17:19:55 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IAXz1-00020L-BJ for emacs-devel@gnu.org; Mon, 16 Jul 2007 17:19:55 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-116-169.inter.net.il [84.229.116.169]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id HGT85395 (AUTH halo1); Tue, 17 Jul 2007 00:20:02 +0300 (IDT) In-reply-to: <200707162101.l6GL1GpJ013563@oogie-boogie.ics.uci.edu> (message from Dan Nicolaescu on Mon, 16 Jul 2007 14:01:16 -0700) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74926 Archived-At: > Cc: "Juanma Barranquero" , emacs-devel@gnu.org > From: Dan Nicolaescu > 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?