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: Tue, 09 Nov 2004 17:45:52 -0700 Message-ID: <2vd6m4F2k7j7cU1@uni-berlin.de> References: <921d670a.0411040819.4a3a5f5d@posting.google.com> <2uvbniF2f1357U1@uni-berlin.de> <921d670a.0411091229.2ea6dfa7@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 1100047604 25209 80.91.229.6 (10 Nov 2004 00:46:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Nov 2004 00:46:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 10 01:46:40 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 1CRgdE-0006gZ-00 for ; Wed, 10 Nov 2004 01:46:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRgle-0006pB-QN for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Nov 2004 19:55:22 -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: 38 Original-X-Trace: news.uni-berlin.de Bz5i4+iyB5GsaufRRbNv7QyotSCMe0R1gHlBK8PW67aRQXG78= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <921d670a.0411091229.2ea6dfa7@posting.google.com> Original-Xref: shelby.stanford.edu gnu.emacs.help:126471 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:21863 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21863 [Please don't top-post.] Scott Thibault wrote: > 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. Saving it in your .emacs file will affect future invocations. Eval'ing it in the *scratch* buffer will affect the current invocation -- but you have to beware that Emacs caches version control info, so you might need to do the following before revisiting the file with e.g `C-x C-v': M-: (vc-file-clearprops buffer-file-name) RET > What is vc-rcs-master-templates? The look like they should be file > specs. `C-h v' should answer that. I see a potential bug that might prevent it from working: if the RCS file's contents have any leading or trailing whitespace, it will be taken as a literal part of the RCS directory name. Try replacing: (buffer-string)))) with: (buffer-substring (progn (goto-char (point-min)) (point)) (if (re-search-forward "\n+\\'" nil t) (match-beginning 0) (point-max)))))) > Is there a way to debug this code? See Stefan's response. -- Kevin