From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: sh.exe needed to bootstrap on Windows? Date: Mon, 16 Jul 2007 14:30:32 -0700 Message-ID: <200707162130.l6GLUW4I014590@oogie-boogie.ics.uci.edu> References: <200707162101.l6GL1GpJ013563@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184621542 8598 80.91.229.12 (16 Jul 2007 21:32:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2007 21:32:22 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 23:32:21 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 1IAYB0-0006LF-91 for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 23:32:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAYAz-0001tz-Gv for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 17:32:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAYAv-0001qp-Cv for emacs-devel@gnu.org; Mon, 16 Jul 2007 17:32:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAYAu-0001pz-Sh for emacs-devel@gnu.org; Mon, 16 Jul 2007 17:32:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAYAu-0001pp-JO for emacs-devel@gnu.org; Mon, 16 Jul 2007 17:32:12 -0400 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IAYAt-0004mu-Cr; Mon, 16 Jul 2007 17:32:11 -0400 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id l6GLUW4I014590; Mon, 16 Jul 2007 14:30:32 -0700 (PDT) In-Reply-To: (Eli Zaretskii's message of "Tue\, 17 Jul 2007 00\:19\:54 +0300") Original-Lines: 45 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_BZ 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: Solaris 9 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:74927 Archived-At: Eli Zaretskii writes: > > 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. 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.