From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: thibault@gmvhdl.com (Scott Thibault) Newsgroups: gmane.emacs.help Subject: Re: NTemacs doesn't understand RCS Date: 9 Nov 2004 12:29:12 -0800 Organization: http://groups.google.com Message-ID: <921d670a.0411091229.2ea6dfa7@posting.google.com> References: <921d670a.0411040819.4a3a5f5d@posting.google.com> <2uvbniF2f1357U1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1100032303 20309 80.91.229.6 (9 Nov 2004 20:31:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Nov 2004 20:31:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 09 21:31:37 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 1CRceO-0002Wy-00 for ; Tue, 09 Nov 2004 21:31:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRcmo-0002Tj-Et for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Nov 2004 15:40:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 66.82.9.61 Original-X-Trace: posting.google.com 1100032152 10155 127.0.0.1 (9 Nov 2004 20:29:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 9 Nov 2004 20:29:12 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:126466 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:21858 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21858 I'm still getting the same message, so I guess it is not working. I put it in my .emacs file and just to be sure copied it to *scratch* and did an eval-buffer. What is vc-rcs-master-templates? The look like they should be file specs. Is there a way to debug this code? Thanks --Scott Kevin Rodgers wrote in message news:<2uvbniF2f1357U1@uni-berlin.de>... > 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))