Re: [O] [PATCH] org-capture, removing whitespace from new captures

2012-02-18 Thread David Maus
At Sat, 18 Feb 2012 18:19:49 +0100, Bastien wrote: > > Hi David and Paul, > > David Maus writes: > > > Instead of adding the :whitespace-cleanup property to the template > > definition (what requires you to specify e.g. whitespace-cleanup in > > every single template) why not define a new hook tha

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2012-02-18 Thread Bastien
Hi David and Paul, David Maus writes: > Instead of adding the :whitespace-cleanup property to the template > definition (what requires you to specify e.g. whitespace-cleanup in > every single template) why not define a new hook that is run before > the finalization starts? I.e. with capture buff

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2012-02-18 Thread David Maus
Hi Bastien, Hi Paul, At Sat, 29 Oct 2011 14:08:52 +0200, Bastien wrote: > > Hi Paul, > > Paul writes: > > > In fact adding whitespace-cleanup to org-capture-before-finalize-hook > > was what I tried first, but it didn't do what I wanted. This hook is > > called _after_ the buffer is widened - ma

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2011-10-29 Thread Bastien
Hi Paul, Paul writes: > In fact adding whitespace-cleanup to org-capture-before-finalize-hook > was what I tried first, but it didn't do what I wanted. This hook is > called _after_ the buffer is widened - making whitespace-cleanup > operate on the _entire_ buffer, not just the newly added capt

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2011-09-14 Thread Olaf Dietsche
Paul writes: > # olaf+list.orgm...@olafdietsche.de, Wed, 14 Sep 2011 18:44:07 +1000: >> paul...@telstra.com writes: >> >> > I found myself manually "cleaning" most CAPTURE buffers of whitespace >> > prior to committing them with C-c C-c. The attached patch adds a new >> > property :whitespace-c

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2011-09-14 Thread Paul
# olaf+list.orgm...@olafdietsche.de, Wed, 14 Sep 2011 18:44:07 +1000: > paul...@telstra.com writes: > > > I found myself manually "cleaning" most CAPTURE buffers of whitespace > > prior to committing them with C-c C-c. The attached patch adds a new > > property :whitespace-cleanup to the org-capt

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2011-09-14 Thread Olaf Dietsche
paul...@telstra.com writes: > I found myself manually "cleaning" most CAPTURE buffers of whitespace > prior to committing them with C-c C-c. The attached patch adds a new > property :whitespace-cleanup to the org-capture-templates. Thanks for pointing to whitespace-cleanup, I've done this manual

[O] [PATCH] org-capture, removing whitespace from new captures

2011-09-13 Thread paulusm
I found myself manually "cleaning" most CAPTURE buffers of whitespace prior to committing them with C-c C-c. The attached patch adds a new property :whitespace-cleanup to the org-capture-templates. -- Paul. diff --git a/lisp/org-capture.el b/lisp/org-capture.el index a7dc92b..ae5af6d 100644 --