help-gnu-emacs
[Top][All Lists]
Advanced

[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" <sven.bretfeld@gmx.ch> writes:

> Vagn Johansen <gonz808@hotmail.com> 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]