This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Any recommendations for off-line CVS/egcs work?
- To: craig at jcb-sc dot com
- Subject: Re: Any recommendations for off-line CVS/egcs work?
- From: Zack Weinberg <zack at rabi dot columbia dot edu>
- Date: Thu, 11 Feb 1999 10:46:34 -0500
- cc: egcs at egcs dot cygnus dot com
>
>I've found that ChangeLog behavior sufficiently annoying that I've
>gotten to where I habitually switch into fundamental mode just to
>start saving a numbered backup, and then switch back. I'll probably
>try and find a way to automate the inclusion of the pertinent ChangeLog
>entry as a non-diff-like header in a patch, at some point.
I find this bit of elisp quite helpful. It just inserts the
boilerplate of a changelog entry into the current buffer. The
(forward-paragraph -1) bit isn't quite right but it comes close.
zw
(defun insert-change-log-entry ()
"Insert a change log entry before the paragraph at point."
(interactive)
(forward-paragraph -1)
(insert "\n"
(format-time-string "%Y-%m-%d %H:%M" (current-time))
" " (rfc822-tz) " "
(user-full-name) " <" user-mail-address ">\n\n\t* \n")
(forward-char -1) (indented-text-mode))