From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pieter Praet Subject: Re: [PATCH] Library of Babel source block Date: Sun, 28 Aug 2011 20:20:29 +0200 Message-ID: <87r545qtxu.fsf@praet.org> References: <87aaatbmq2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxjyF-0002lH-BS for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 14:20:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxjyD-00051o-VT for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 14:20:35 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:42401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxjyD-00051U-QY for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 14:20:33 -0400 Received: by wyi11 with SMTP id 11so3993306wyi.0 for ; Sun, 28 Aug 2011 11:20:32 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org-mode On Sun, 28 Aug 2011 07:11:36 -1000, tsd@tsdye.com (Thomas S. Dye) wrote: > [...] > I tried to follow Bastien's suggestion about adding a change log to the > commit message, but ended up with something that looks different than > his example. I'm not sure why--perhaps Bastien is not working in magit, > so his instructions apply to some other context? > [...] Bastien was referring to `add-change-log-entry{,-other-window}', which is part of Emacs [1], and is mainly intended to add entries to a dedicated ChangeLog file (when this file isn't present, it'll open a new buffer for the entry). While it *does* most definitely produce properly formatted entries when called with point on a diff hunk, it always requires the extra step of yanking the entry into your commit message buffer. When using Magit (which I highly recommend) however, you can add properly formatted entries *much* faster by positioning point on a (staged) diff hunk in the status buffer, and calling `magit-add-log' (bound to 'C') [2]. If you don't already have a commit buffer ('*magit-edit-log*'), it will create one for you, so you don't even need to call `magit-log-edit' (bound to 'c') in advance anymore. :) Peace -- Pieter [1] [[info:emacs#Change Log]] [2] [[info:magit#Staging and Committing]]