From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuri Niyazov Subject: Re: [bug?] Different whitespace behavior between capture, and capture w. refile Date: Thu, 8 Jan 2015 16:38:16 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2356459e7ec050c2d5f57 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Nam-0002lX-1t for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 19:38:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9Nak-0005gV-O6 for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 19:38:19 -0500 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:36658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Nak-0005fv-CH for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 19:38:18 -0500 Received: by mail-la0-f54.google.com with SMTP id pv20so12074317lab.13 for ; Thu, 08 Jan 2015 16:38:16 -0800 (PST) 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: "emacs-orgmode@gnu.org" --001a11c2356459e7ec050c2d5f57 Content-Type: text/plain; charset=UTF-8 Could someone please chime in on this? On Sunday, January 4, 2015, Yuri Niyazov wrote: > Let's say I start with a .notes file that looks like this: > > #+BEGIN_EXAMPLE > * Tasks > * Refile Here > * Other Stuff > #+END_EXAMPLE > > with all the default capture templates. > > The only org-mode configuration I have is > > (org-blank-before-new-entry (quote ((heading) (plain-list-item)))) > > as well as C-c c for capture. Everything else is default. This is on > Emacs 24.4, and org-mode 8.2.10 > > Let's say I have another file called ~/Spike.org open, and I am > capturing from it. This is not relevant to the example, but makes it > clearer where the links are coming from. > > Then, I capture two items: > > C-c c t "Capture Item 1" C-c C-c and C-c c t "Capture Item 2" C-c C-c. > > Now, my .notes file looks like this: > > #+BEGIN_EXAMPLE > * Tasks > ** TODO Capture Item 1 > [2015-01-04 Sun] > [[file:~/Spike.org]] > ** TODO Capture Item 2 > [2015-01-04 Sun] > [[file:~/Spike.org]] > * Refile Here > * Other Stuff > #+END_EXAMPLE > > Note how there are no blank lines between the different capture items. > > Now, I capture two items, but instead of finishing the capture with > C-c C-c, I refile right from the Capture window: > > C-c c t "Refile Item 1" C-c C-w "Refile here" and C-c c t "Refile Item > 2" C-c C-w "Refile here". > > Now, my .notes file looks like this: > > #+BEGIN_EXAMPLE > * Tasks > ** TODO Capture Item 1 > [2015-01-04 Sun] > [[file:~/Spike.org]] > ** TODO Capture Item 2 > [2015-01-04 Sun] > [[file:~/Spike.org]] > * Refile Here > ** TODO Refile Item 1 > [2015-01-04 Sun] > [[file:~/Spike.org]] > > ** TODO Refile Item 2 > [2015-01-04 Sun] > [[file:~/Spike.org]] > > * Other Stuff > #+END_EXAMPLE > > Note how refiling from the capture window introduced whitespace > between items under "Refile here", but finishing the capture doesn't. > Needless to say, this inconsistency drives me mildly up the wall. I am > currently looking into writing some sort of hook for > org-after-refile-insert-hook, but exactly what to do there is unclear. > Is there some configuration option I am missing? > > Thanks! > --001a11c2356459e7ec050c2d5f57 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Could someone please=C2=A0chime in on this?

On Sunday, = January 4, 2015, Yuri Niyazov <yuri.niyazov@gmail.com> wrote:
Le= t's say I start with a .notes file that looks like this:

#+BEGIN_EXAMPLE
* Tasks
* Refile Here
* Other Stuff
#+END_EXAMPLE

with all the default capture templates.

The only org-mode configuration I have is

(org-blank-before-new-entry (quote ((heading) (plain-list-item))))

as well as C-c c for capture. Everything else is default. This is on
Emacs 24.4, and org-mode 8.2.10

Let's say I have another file called ~/Spike.org open, and I am
capturing from it. This is not relevant to the example, but makes it
clearer where the links are coming from.

Then, I capture two items:

C-c c t "Capture Item 1" C-c C-c and C-c c t "Capture Item 2= " C-c C-c.

Now, my .notes file looks like this:

#+BEGIN_EXAMPLE
* Tasks
** TODO Capture Item 1
=C2=A0 [2015-01-04 Sun]
=C2=A0 [[file:~/Spike.org]]
** TODO Capture Item 2
=C2=A0 [2015-01-04 Sun]
=C2=A0 [[file:~/Spike.org]]
* Refile Here
* Other Stuff
#+END_EXAMPLE

Note how there are no blank lines between the different capture items.

Now, I capture two items, but instead of finishing the capture with
C-c C-c, I refile right from the Capture window:

C-c c t "Refile Item 1" C-c C-w "Refile here" and C-c c= t "Refile Item
2" C-c C-w "Refile here".

Now, my .notes file looks like this:

#+BEGIN_EXAMPLE
* Tasks
** TODO Capture Item 1
=C2=A0 [2015-01-04 Sun]
=C2=A0 [[file:~/Spike.org]]
** TODO Capture Item 2
=C2=A0 [2015-01-04 Sun]
=C2=A0 [[file:~/Spike.org]]
* Refile Here
** TODO Refile Item 1
=C2=A0 [2015-01-04 Sun]
=C2=A0 [[file:~/Spike.org]]

** TODO Refile Item 2
=C2=A0 [2015-01-04 Sun]
=C2=A0 [[file:~/Spike.org]]

* Other Stuff
#+END_EXAMPLE

Note how refiling from the capture window introduced whitespace
between items under "Refile here", but finishing the capture does= n't.
Needless to say, this inconsistency drives me mildly up the wall. I am
currently looking into writing some sort of hook for
org-after-refile-insert-hook, but exactly what to do there is unclear.
Is there some configuration option I am missing?

Thanks!
--001a11c2356459e7ec050c2d5f57--