From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andre Spiegel Newsgroups: gmane.emacs.devel Subject: Re: How to inhibit version control for a single command. Date: Fri, 22 Aug 2003 20:54:43 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <1061578483.484.31.camel@localhost> References: <5x4r0d9ma7.fsf@kfs2.cua.dk> <3F454D46.7080105@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1061613569 463 80.91.224.253 (23 Aug 2003 04:39:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Aug 2003 04:39:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Aug 23 06:39:27 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19qQBT-0006iy-00 for ; Sat, 23 Aug 2003 06:39:27 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19qQFw-0008R6-00 for ; Sat, 23 Aug 2003 06:44:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qQAP-0005lm-A5 for emacs-devel@quimby.gnus.org; Sat, 23 Aug 2003 00:38:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19qHfp-0008VE-2h for emacs-devel@gnu.org; Fri, 22 Aug 2003 15:34:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19qHDN-0005mZ-AF for emacs-devel@gnu.org; Fri, 22 Aug 2003 15:05:20 -0400 Original-Received: from [193.113.160.16] (helo=mail.o2.co.uk) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qHDM-0005lM-9U for emacs-devel@gnu.org; Fri, 22 Aug 2003 15:04:48 -0400 Original-Received: from [217.235.17.10] (217.235.17.10) by mail.o2.co.uk (7.0.018.1) (authenticated as 01792247376@o2online.de) id 3F25D5D40061FD4D for emacs-devel@gnu.org; Fri, 22 Aug 2003 19:54:44 +0100 Original-To: emacs-devel@gnu.org In-Reply-To: <3F454D46.7080105@yahoo.com> X-Mailer: Ximian Evolution 1.4.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16086 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16086 On Fri, 2003-08-22 at 00:52, Kevin Rodgers wrote: > (defmacro with-vc-disabled (&rest body) > "Execute BODY forms with version control disabled. > Temporarily bind `vc-rcs-master-templates' and `vc-sccs-master-templates' > to nil." This should clearly not be necessary: setting vc-handled-backends to nil is all that you need. The vc-BACKEND-master-templates mechanism is actually only used for RCS and SCCS nowadays, it is not a general mechanism that would suit all kinds of version control backends. CVS, for example, no longer uses it. vc-handled-backends tells VC which backends it should watch out for, and each backend can have its own idea how to determine if a file is controlled by it. Setting vc-handled-backends to nil simply disables VC for all backends.