From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Bug: org-refile-get-target offers default candidate in duplicity [9.2.6 (9.2.6-4-ge30905-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20191007/)] Date: Sun, 16 Feb 2020 17:25:25 -0700 Message-ID: References: <87lftw1k2n.fsf@gmail.com> <875zgb7520.fsf@gnu.org> <87sgjfgsoy.fsf@gmail.com> <87a75nexqy.fsf@gnu.org> <87blq1trjo.fsf@bzg.fr> <87d0aegjee.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60427) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3UED-0008Qg-MU for emacs-orgmode@gnu.org; Sun, 16 Feb 2020 19:25:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3UEC-0006hk-IU for emacs-orgmode@gnu.org; Sun, 16 Feb 2020 19:25:37 -0500 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: emacs-orgmode@gnu.org, Gustavo Barros i found a note that says that there isa nother disticnitont hat was causing the bugs: a distinction between the current file and non-current file. it wreaks havoc to make that distinction. ************* REF this works around the bugs =this is in my personal patches vvv Modified lisp/org.el diff --git a/lisp/org.el b/lisp/org.el index ec74314..695305c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11737,7 +11737,7 @@ this is used for the GOTO interface." (tbl (mapcar (lambda (x) (if (and (not (member org-refile-use-outline-path - '(file full-file-path))) + '(nil file full-file-path))) (not (equal filename (nth 1 x)))) (cons (concat (car x) extra " (" (file-name-nondirectory (nth 1 x)) ")") also, the line after the + line is clearly related to the duplicate olpath and pointless current file vs. other file distinction. the workaround works because there is no olpath and no filename now, so flex matching cannot screw with assuming the default as easily. ideally, however, we would show the filename but not match on it in ido. ^^^ -- The Kafka Pandemic What is misopathy? https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html