From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: VC-CVS commit with standard comment Date: Mon, 22 Feb 2010 21:32:42 -0700 Message-ID: References: <87bpfp8r3c.fsf@gmx.ch> <87bpfhxyop.fsf@gmx.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1266899743 28033 80.91.229.12 (23 Feb 2010 04:35:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2010 04:35:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 05:35:39 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NjmUj-0004PU-3Y for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2010 05:35:37 +0100 Original-Received: from localhost ([127.0.0.1]:60993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjmUi-0008Tb-IF for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Feb 2010 23:35:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjmUK-0008TK-VG for help-gnu-emacs@gnu.org; Mon, 22 Feb 2010 23:35:12 -0500 Original-Received: from [140.186.70.92] (port=49203 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjmUG-0008S3-DL for help-gnu-emacs@gnu.org; Mon, 22 Feb 2010 23:35:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjmUC-0001rr-0B for help-gnu-emacs@gnu.org; Mon, 22 Feb 2010 23:35:08 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:34150) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjmUB-0001rn-Pb for help-gnu-emacs@gnu.org; Mon, 22 Feb 2010 23:35:03 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NjmUA-0004Dk-Jt for help-gnu-emacs@gnu.org; Tue, 23 Feb 2010 05:35:02 +0100 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Feb 2010 05:35:02 +0100 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Feb 2010 05:35:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <87bpfhxyop.fsf@gmx.ch> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72047 Archived-At: Sven Bretfeld wrote: > Vagn Johansen 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". (lambda () (erase-buffer) (insert "new")) -- Kevin Rodgers Denver, Colorado, USA