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: Sven Bretfeld
Subject: Re: VC-CVS commit with standard comment
Date: 23 Feb 2010 10:46:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

Hi

Vagn Johansen <gonz808@hotmail.com> writes:

> "Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:

>>> (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")))

That's working perfectly. Thank you very much.

Greetings,

Sven




reply via email to

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