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: Sun, 26 Jan 2014 19:16:18 -0700 Message-ID: References: <877gcb6ena.fsf@bzg.ath.cx> <87wqkb4zso.fsf@bzg.ath.cx> <87iot6jt0i.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]:46339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7bkM-0005zs-2Q for emacs-orgmode@gnu.org; Sun, 26 Jan 2014 21:16:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7bkK-0001c5-ME for emacs-orgmode@gnu.org; Sun, 26 Jan 2014 21:16:21 -0500 In-Reply-To: <87iot6jt0i.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, Thank you for commenting and providing a clue. If I understand correctly, I don't see the need for any error or asking again, as it is always obvious what I, at least, want to do. It shows an olpath, so what I want is to refile or goto that olpath in every case. I also don't see the need for a distinction between this file and not this file. I never care what file I am in when I refile or goto. === It is the default Ido selection (after typing "emacs") that errors, which seems like an indication that we need a different solution. In other cases, the default Ido selection always misfiles with no error (ECM similar to the thread leader message but without an error). Thus, you end up with stuff in the wrong place, silently. And in a third case, it silently fails. So you think you refiled but you did not. All three bugs happen quite frequently. Error, misfile, or silently doing nothing. === If the distinction between current file and non-current file is the reason, can we make it consistent by adding the filename for the same buffer also? That way all choices are equivalent. I find it confusing, as I never care what file I am in when I refile or goto. I don't think of Org as a single-file tree, but as a forest of equal trees. To have to think about "this is the same file" and "no, I am going to a different file" interrupts the refile for me; I never make that distinction. org-refile-use-outline-path set to file or full file path seems to not affect the result. === Perhaps somebody else who uses Ido refiling can test the thread leader case (/computer/emacs/myorg, refile to "myorg", try to refile to "emacs") and comment? === Are you talking about 2 olpaths pointing to different files? I never have that use case, because I always show the olpath and never repeat it. But what does happen is that I get one olpath that causes an error and another that does not. And the one that causes the error is always the Ido default, so I can't press RET. === Is what shows the same as what is used to disambiguate? Can we have the full path name + olpath in Lisp and only show the olpath? That would be ideal. I wanted to make this message shorter, but this is the best I was able to do. Thanks. Samuel On 1/26/14, Bastien wrote: > Samuel Wales writes: > >> When I run refile goto in the same buffer, it goes to the correct >> location and then does that. When I run refile goto in a different >> buffer, it does not go anywhere and it does that. > > Because for now you need to add the file name when refiling to > a different buffer. > > I agree we should provide a better error, or just ask again. > > I don't see how to remove the need for the file name though. > Taking into account that several buffers may contain subtrees > with the same headline. > > If you have any idea, please let us 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.