[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VC-CVS commit with standard comment

From: Vagn Johansen
Subject: Re: VC-CVS commit with standard comment
Date: Mon, 22 Feb 2010 19:42:22 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin)

"Sven Bretfeld" <address@hidden> writes:

> Vagn Johansen <address@hidden> writes:
>>>>> Is it possible to set an automatic standard comment when checking in a
>>>>> version controlled file? 
>> (add-hook 'log-edit-mode-hook '(lambda () (interactive) (insert "new")))
> That's almost working. Thanks. The problem is that the second checkin
> wants to add the comment "newnew", the third "newnewnew".

Maybe this will work (untested)

(add-hook 'log-edit-mode-hook '(lambda () (interactive) 
                  (delete-region (point-min) (point-max))
                  (insert "new")))

Vagn Johansen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]