From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rmolen@socal.rr.com (Richard V. Molen) Newsgroups: gmane.emacs.help Subject: Re: ChangeLog and Version Control Date: Thu, 26 Sep 2002 21:34:53 GMT Organization: RoadRunner - West Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <5lelbgmzx3.fsf@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033076863 24194 127.0.0.1 (26 Sep 2002 21:47:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2002 21:47:43 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17ugU2-0006I6-00 for ; Thu, 26 Sep 2002 23:47:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ugUA-0006e5-00; Thu, 26 Sep 2002 17:47:50 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!demon!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!grr!news-east.rr.com!cyclone.columbus.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 66.75.118.238 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.socal.rr.com 1033076093 66.75.118.238 (Thu, 26 Sep 2002 14:34:53 PDT) Original-NNTP-Posting-Date: Thu, 26 Sep 2002 14:34:53 PDT Original-Xref: nntp.stanford.edu gnu.emacs.help:105361 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1912 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1912 Thanks Aman, this was what I was looking for. I hacked up an alternative that doesn't prompt -- "if it's the ChangeLog, don't add the comment." (see below). It's the "I'm not an ELisper" version, but it seems to work. Improvements are welcome. It would be even nicer if I could keep the ChangeLog from 'popping up' each time -- summary comments could be added explicitly w/ C-x 4 a. Thank you Kai for your comments on C-x 4 a -- I'll have to try that approach. It has more features than I realised. ****************************** ;asks whether to automatically insert last Version control log entry into ;ChangeLog & allow ChangeLog editing. Answer 'n' after C-x C-q...C-c C-c ;of ChangeLog to prevent adding its log entry to itself. (defun vc-checkin-add-log-no-prompt () (let ((log (find-change-log))) (and log (not (string-match (format "%s" (file-relative-name log)) (format "%s" (file-relative-name buffer-file-name)))) (vc-comment-to-change-log nil log)))) (add-hook 'vc-checkin-hook 'vc-checkin-add-log-no-prompt) (setq vc-command-messages t ;display version control backend messages? vc-initial-comment t ;request initial log entry when adding a file. ) ****************************** -- Richard V. Molen Warning!! Signature under construction, safety glasses required.