From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: bug: "Please save the buffer to a file before refiling" when the buffer is already saved" Date: Wed, 29 Jan 2014 18:13:20 -0700 Message-ID: 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> <878utye4bo.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8gC2-0003Tn-Uk for emacs-orgmode@gnu.org; Wed, 29 Jan 2014 20:13:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8gC1-0007oc-QZ for emacs-orgmode@gnu.org; Wed, 29 Jan 2014 20:13:22 -0500 In-Reply-To: <878utye4bo.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode hi bastien, the ecm is as in the thread leader that we have been discussing: computer.org contains computer/emacs, computer/emacs/myorg. this sequence causes the error for me: === reboot emacs use ido refile goto to "myorg" this works refile goto to "emacs" ignore the bug that the default says computer/emacs/myorg i.e. select computer/emacs manually this works switch to scratch buffer refile goto to emacs you will see the bug that there are 2 olpaths pointing to computer/emacs one has filename and the other does not select the default you will get the error i hope === i have very little capacity to do this properly, doing the best i can so you get timely feedback. perhaps this gives you a little to go on. if not, this will take much longer. samuel On 1/29/14, Bastien wrote: > 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 > -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.