Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 May 2003 07:57:47 -0700
From:      bmah@acm.org (Bruce A. Mah)
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/release/doc/en_US.ISO8859-1/relnotes/common new.sgml 
Message-ID:  <200305091457.h49Evlrh006979@bmah.dyndns.org>
In-Reply-To: <xzpy91g9znn.fsf@flood.ping.uio.no> 
References:  <200305082109.h48L9deO082933@repoman.freebsd.org> <200305082120.h48LKExV017697@bmah.dyndns.org> <xzpy91g9znn.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
--==_Exmh_806122405P
Content-Type: text/plain; charset=us-ascii

If memory serves me right, Dag-Erling Smorgrav wrote:
> bmah@acm.org (Bruce A. Mah) writes:
> > If anyone knows how to make emacs's version control put up something
> > resembling our CVS commit message template file when I commit, I'd
> > greatly appreciate it.  I must do this four or five times every release.
> 
> Like eivind@ taught me a long time ago (or tried to, anyway): "don't
> commit from emacs".

I'd rather make the tool fit my way of working, rather than adjust my 
way of working to fit the tool.  :-)

Anyways...I think I figured it out (at least for GNU Emacs 21.3).  Add
this to ~/.emacs:

(add-hook 'vc-log-mode-hook '(lambda() (if (= (buffer-size) 0) (insert "
PR:             
Approved by:    
Reviewed by:    
"))))

Add other CVS template fields as desired.  Salt to taste.  Cook until 
golden brown.

Bruce.



--==_Exmh_806122405P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
Comment: Exmh version 2.5+ 20020506

iD8DBQE+u8Hr2MoxcVugUsMRAoJgAKDvmFmrtIXUrEuH1WIeylAOsw6kBACg4OAE
AwU1dqjk6HdC3wk2P2x0004=
=I9dW
-----END PGP SIGNATURE-----

--==_Exmh_806122405P--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305091457.h49Evlrh006979>