From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuri Niyazov Subject: [bug?] Different whitespace behavior between capture, and capture w. refile Date: Sun, 4 Jan 2015 20:01:29 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7yri-0008Tn-N6 for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 23:02:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7yrh-0005o3-Kj for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 23:02:02 -0500 Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:53081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7yrh-0005nw-Da for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 23:02:01 -0500 Received: by mail-lb0-f182.google.com with SMTP id f15so19205512lbj.13 for ; Sun, 04 Jan 2015 20:01:59 -0800 (PST) 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 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!