From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Customizing the VC backend order Date: Fri, 10 Aug 2007 07:44:28 +0200 Message-ID: <85sl6slz9f.fsf@lola.goethe.zz> References: <85wsw4lzt8.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186724714 5597 80.91.229.12 (10 Aug 2007 05:45:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2007 05:45:14 +0000 (UTC) Cc: Stefan Monnier , Emacs Devel To: dhruva Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 10 07:45:09 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 1IJNJ7-0000FQ-1a for ged-emacs-devel@m.gmane.org; Fri, 10 Aug 2007 07:45:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJNJ6-0004Ts-M6 for ged-emacs-devel@m.gmane.org; Fri, 10 Aug 2007 01:45:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IJNIX-0004Fc-00 for emacs-devel@gnu.org; Fri, 10 Aug 2007 01:44:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IJNIV-0004Eq-9K for emacs-devel@gnu.org; Fri, 10 Aug 2007 01:44:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJNIV-0004EZ-4M for emacs-devel@gnu.org; Fri, 10 Aug 2007 01:44:31 -0400 Original-Received: from mail-in-12.arcor-online.net ([151.189.21.52]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IJNIU-0004AU-Nz for emacs-devel@gnu.org; Fri, 10 Aug 2007 01:44:30 -0400 Original-Received: from mail-in-01-z2.arcor-online.net (mail-in-01-z2.arcor-online.net [151.189.8.13]) by mail-in-12.arcor-online.net (Postfix) with ESMTP id 22A6F4C5FB; Fri, 10 Aug 2007 07:44:29 +0200 (CEST) Original-Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 0EA2C13ED8C; Fri, 10 Aug 2007 07:44:29 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-054-042.pools.arcor-ip.net [84.61.54.42]) by mail-in-10.arcor-online.net (Postfix) with ESMTP id C32C62351A3; Fri, 10 Aug 2007 07:44:28 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 47AE31C3C79D; Fri, 10 Aug 2007 07:44:28 +0200 (CEST) In-Reply-To: <85wsw4lzt8.fsf@lola.goethe.zz> (David Kastrup's message of "Fri\, 10 Aug 2007 07\:32\:35 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.1/3908/Thu Aug 9 23:32:41 2007 on mail-in-10.arcor-online.net X-Virus-Status: Clean X-Detected-Kernel: Linux 2.4-2.6 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:76312 Archived-At: David Kastrup writes: > dhruva writes: > >> Hi, >> >> On 8/10/07, Stefan Monnier wrote: >>> > falling back on CVS (and the rest). I tried modifying the order in >>> > "vc-handled-backends" in my dotemacs file. >>> >>> That *should* work. >> >> I tried with only the following two lines in my dotemacs >> (load "vc-hg") >> (setq vc-handled-backends (nconc '(Hg) (delq 'Hg vc-handled-backends))) > > Yikes!!!!! Please _never_ use nconc unless you have a license to do > so. Do you know what the last line will do when executed more than > once? Well, at least when you actually _read_ the line once. So try the following example. Can you figure out what happens? (setq xxx (copy-sequence vc-handled-backends)) (dotimes (i 3) (setq xxx (nconc '(Hg) (delq 'Hg xxx)))) xxx -- David Kastrup, Kriemhildstr. 15, 44793 Bochum