From mboxrd@z Thu Jan  1 00:00:00 1970
From: Rodrigo Amestica <ramestica@gmail.com>
Subject: Re: capture template property :kill-buffer does not let me refile
Date: Sun, 27 Oct 2013 21:48:40 -0400
Message-ID: <ybifvrmyxl3.wl%ramestica@gmail.com>
References: <ybifvrp7yhi.wl%ramestica@gmail.com>
	<ybieh768y8c.wl%ramestica@gmail.com>
Mime-Version: 1.0 (generated by SEMI 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41712)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ramestica@gmail.com>) id 1Vabwm-0002eT-Fw
	for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 21:48:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ramestica@gmail.com>) id 1Vabwl-000519-J8
	for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 21:48:48 -0400
Received: from mail-qe0-x22f.google.com ([2607:f8b0:400d:c02::22f]:44369)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ramestica@gmail.com>) id 1Vabwl-000515-DF
	for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 21:48:47 -0400
Received: by mail-qe0-f47.google.com with SMTP id b4so3616728qen.6
	for <emacs-orgmode@gnu.org>; Sun, 27 Oct 2013 18:48:46 -0700 (PDT)
Received: from trauko.gmail.com ([2601:8:3000:1e0:2810:8ec:cd97:9d2b])
	by mx.google.com with ESMTPSA id h6sm38891321qej.4.2013.10.27.18.48.45
	for <emacs-orgmode@gnu.org>
	(version=TLSv1.2 cipher=RC4-SHA bits=128/128);
	Sun, 27 Oct 2013 18:48:45 -0700 (PDT)
In-Reply-To: <ybieh768y8c.wl%ramestica@gmail.com>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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

Hello,

based on 'printf' type logging I have found one solution that looks to me like a
bug fix in org-capture-refile. But I'm obviously far from guessing any side
effect that I could be missing.

In org-capture-refile if I move org-capture-finalize after the
save-window-excursion form then the :kill-buffer option works as expected
without interfering with the refile operation.

I meant to say a bug fix because to me it sounds more reasonable to call
org-capture-finalize really when finished, in this specific case after refile.

Does that make sense?

Thanks,
 Rodrigo