all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Re: ChangeLog and Version Control
Date: Thu, 26 Sep 2002 16:29:29 +0200	[thread overview]
Message-ID: <vaf1y7g3jue.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: rp65wt16xl.fsf@kanha.dublin.iona.ie

Aman S Kohli <akohli@iona.com> writes:

> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
>
>> rmolen@socal.rr.com (Richard V. Molen) writes:
>> 
>> I think this is not the default behavior.  The default behavior is
>> that the ChangeLog file is not changed after doing C-c C-c.
>> 
>> So something in your config must be doing it.
>
> vc provides a function to use as part of the checkin hook.  I got this from
>
> <URL http://www.ece.utexas.edu/projects/courses/spring_02/ee379k/bow-20020213/HACKING>
>
>      (add-hook 'vc-checkin-hook 'vc-checkin-add-log)
>      ;;; Insert the file's new log entries in ChangeLog.
>      (defun vc-checkin-add-log ()
>        (let ((log (find-change-log)))
>          (and log
>      	 (y-or-n-p (format "Update %s for %s changes? "
>      			   (file-relative-name log)
>      			   (file-relative-name buffer-file-name)))
>      	 (vc-comment-to-change-log nil log))))

Aha.  So one idea would be to redefine this function to do nothing
for ChangeLog files.

Another idea would be to do it the other way round: with C-x 4 a,
make some ChangeLog entries.  Then use PCL-CVS which parses the
ChangeLog file and offers those entries as commit entries.

I like this approach because C-x 4 a is so smart: based on the
position of the cursor, it already finds the right function name (or
section name, for LaTeX files).  Nifty.  (C-x 4 a also works in diff
buffers -- super-nifty.)

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

  reply	other threads:[~2002-09-26 14:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26  6:59 ChangeLog and Version Control Richard V. Molen
2002-09-26  8:24 ` Kai Großjohann
2002-09-26  8:39   ` Aman S Kohli
2002-09-26 14:29     ` Kai Großjohann [this message]
2002-09-26 17:19       ` Stefan Monnier <foo@acm.com>
2002-09-26 21:34         ` Richard V. Molen
2002-09-27  7:08           ` Aman S Kohli
2002-09-27 15:42             ` Richard V. Molen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vaf1y7g3jue.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.