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 15:40:57 -0700 Message-ID: <200707162240.l6GMevpT016693@oogie-boogie.ics.uci.edu> References: <200707162101.l6GL1GpJ013563@oogie-boogie.ics.uci.edu> <200707162130.l6GLUW4I014590@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 1184625687 20935 80.91.229.12 (16 Jul 2007 22:41:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2007 22:41:27 +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 Tue Jul 17 00:41:25 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 1IAZFt-0001Lw-AE for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2007 00:41:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAZFs-000486-Km for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 18:41:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAZFp-000481-U0 for emacs-devel@gnu.org; Mon, 16 Jul 2007 18:41:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAZFp-00047p-C3 for emacs-devel@gnu.org; Mon, 16 Jul 2007 18:41:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAZFp-00047m-9t for emacs-devel@gnu.org; Mon, 16 Jul 2007 18:41:21 -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 1IAZFo-0007Pm-5D; Mon, 16 Jul 2007 18:41:20 -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 l6GMevpT016693; Mon, 16 Jul 2007 15:40:57 -0700 (PDT) In-Reply-To: (Eli Zaretskii's message of "Tue\, 17 Jul 2007 01\:01\:15 +0300") Original-Lines: 36 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:74932 Archived-At: Eli Zaretskii writes: > > Cc: lekktu@gmail.com, emacs-devel@gnu.org > > From: Dan Nicolaescu > > Date: Mon, 16 Jul 2007 14:30:32 -0700 > > > > > (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. > > But this is a mapcar that goes over vc-handled-backends, which > includes bzr. So eventually, it will call > > (vc-call-backend 'bzr file 'vc-backend) > > which will load vc-bzr.el. Am I right? I don't think so, it will call: (vc-call-backend 'BZR 'registered file) => it will call vc-bzr-registered (which is autoloaded and it should return false...).