This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Any recommendations for off-line CVS/egcs work?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]