From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: NTemacs doesn't understand RCS Date: Thu, 04 Nov 2004 11:46:05 -0700 Message-ID: <2uvbniF2f1357U1@uni-berlin.de> References: <921d670a.0411040819.4a3a5f5d@posting.google.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1099594024 9321 80.91.229.6 (4 Nov 2004 18:47:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2004 18:47:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 04 19:47:00 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CPmdQ-00028J-00 for ; Thu, 04 Nov 2004 19:47:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPmlZ-0008Ch-Kp for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Nov 2004 13:55:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-X-Trace: news.uni-berlin.de 6zA4RHmQ/NIWx4hrZ2MRLgp0aSPzFX3cak5SjGLBKwnDOEYMQ= User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en In-Reply-To: <921d670a.0411040819.4a3a5f5d@posting.google.com> Original-Xref: shelby.stanford.edu gnu.emacs.help:126348 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21735 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21735 Scott Thibault wrote: > I'm using a version of RCS that allows you to create a text file > called RCS that contains a pointer to the RCS directory rather than a > real directory - a work around for not having links on Windows. > > So, the question is how do I get emacs to understand these link files? > Out-of-the-box, when I try C-x v v, the ci command fails with the > message \src\RCS\file.c,v already exists. I assume because emacs > doesn't recognize the RCS "link" and tries to do a ci -i. Try this (untested!): (defun gmvhdl-rcs-template (directory file) "Return non-nil if FILE in DIRECTORY is under RCS control." (if (file-regular-p (expand-file-name "RCS" directory)) (let ((rcs-directory (with-temp-buffer (insert-file-contents (expand-file-name "RCS" directory)) (buffer-string)))) ;; in case rcs-directory is relative: (setq rcs-directory (expand-file-name rcs-directory directory)) ;; check rcs-directory/FILE against the default templates: (if (file-directory-p rcs-directory) (vc-check-master-templates (expand-file-name file rcs-directory) (remq 'gmvhdl-rcs-template vc-rcs-master-templates)))))) (setq vc-rcs-master-templates (cons 'gmvhdl-rcs-template vc-rcs-master-templates)) -- Kevin Rodgers