From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: [bug] org-refile makes ido think that some candidates are directories Date: Wed, 13 Nov 2013 12:11:54 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgfr3-00055G-KK for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 14:11:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgfr2-0002iG-7O for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 14:11:57 -0500 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:64816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgfr2-0002i8-0B for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 14:11:56 -0500 Received: by mail-wg0-f46.google.com with SMTP id x12so854383wgg.13 for ; Wed, 13 Nov 2013 11:11:54 -0800 (PST) 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 i have not been able to track this down further. has anybody taken a look at it? On 8/27/13, Samuel Wales wrote: > org-refile makes ido think that every entry that is in the > current buffer is a directory, while every entry that is > in another buffer is a file. > > === > > You can confirm by loading ido and doing this: > > (setq org-refile-use-outline-path t) > (setq org-outline-path-complete-in-steps nil) > (setq org-completion-use-ido t) > > Now do org-refile and look at the candidate list. Please > note the addition of the filename at the end of the entries > that are not in the current buffer, and probably a different > font. You can use the ido keys for navigating directories, > and they will only go to the entries in the current buffer. > > === > > The relevant part of org.el seems to be this, but I do not > understand it: > > (setq answ (funcall cfunc prompt tbl nil (not new-nodes) > nil 'org-refile-history (or cdef (car org-refile-history)))) > > This is FAR beyond my ability to debug, but I suspect > that the artificial distinction between the current buffer > and other buffers, treating one as a directory and the other > as a file, might be related to several long-standing, subtle > but extremely annoying bugs involving the default and > history. But I could be wrong about that. > > For example, if you previously refiled, there is always an > extra entry that has no marker and errors if you select it, > and it is often the default candidate :(. And it is > impossible to narrow to a subtree of the default subtree :(. > I have previously reported at least one of these bugs. > > === > > In any case, IMO, ido should treat all olpaths as if they > were files. Can anybody help track this down? > > Thanks. > > Samuel > > -- > 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. > -- 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.