From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rodrigo Amestica Subject: Re: capture template property :kill-buffer does not let me refile Date: Sun, 27 Oct 2013 21:48:40 -0400 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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 ; 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 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 27 Oct 2013 18:48:45 -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: 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