From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: bug: "Please save the buffer to a file before refiling" when the buffer is already saved" Date: Thu, 30 Jan 2014 00:49:47 +0100 Message-ID: <878utye4bo.fsf@bzg.ath.cx> References: <877gcb6ena.fsf@bzg.ath.cx> <87wqkb4zso.fsf@bzg.ath.cx> <87iot6jt0i.fsf@bzg.ath.cx> <87k3dktrg7.fsf@bzg.ath.cx> <87d2jb142o.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8etM-0001da-AO for emacs-orgmode@gnu.org; Wed, 29 Jan 2014 18:50:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8etD-0001Qj-Pi for emacs-orgmode@gnu.org; Wed, 29 Jan 2014 18:50:00 -0500 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:39867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8etD-0001QZ-Ik for emacs-orgmode@gnu.org; Wed, 29 Jan 2014 18:49:51 -0500 Received: by mail-wg0-f46.google.com with SMTP id x12so4877278wgg.25 for ; Wed, 29 Jan 2014 15:49:50 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Wed, 29 Jan 2014 15:02:21 -0700") 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: Samuel Wales Cc: emacs-orgmode Hi Samuel, please provide a reproducible recipe, it's really hard to explore those kind of bugs otherwise. The patch should fix at least these two bugs: - you enter "A headline/" as a refile target but "A headline/" is not in the current file: before the patch, it throws an error, after the patch it refiles to "A headline/". - you enter "A headline/a_non_existent_headline" as a refile target and have (setq org-refile-allow-creating-parent-nodes t). Before the patch, if "A headline/" is not in the current file, it will fail silently. Now the prompt asks for confirmation and will refile to the correct location by guessing the filename right. Thanks for letting me know. -- Bastien