From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Abrahams Subject: Re: Bug: Odd Ido interaction [7.01trans] Date: Mon, 04 Oct 2010 06:28:55 -0400 Message-ID: References: <80D53061-DC37-4A3F-ACD2-976ACF867705@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=56240 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2iJR-0005ZZ-Hd for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 06:30:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2iJO-0005HY-SR for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 06:30:29 -0400 Received: from mail-qy0-f169.google.com ([209.85.216.169]:51144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2iJO-0005HI-QQ for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 06:30:26 -0400 Received: by qyk33 with SMTP id 33so1295756qyk.0 for ; Mon, 04 Oct 2010 03:30:25 -0700 (PDT) In-Reply-To: <80D53061-DC37-4A3F-ACD2-976ACF867705@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org At Mon, 4 Oct 2010 10:54:39 +0200, Carsten Dominik wrote: > > Hi David, > > well, it can happen that an item shows up multiple ways - if it has > been selected by different methods. For example, if your org-refile- > targets variable is like this: > > ((org-agenda-files :level . 1) > (org-agenda-files :tag . "refile") > (nil :maxlevel . 2)) > > then you could get three instances: > > 1. it is a level 1 item in any of the agenda items > 2. it has the tag "refile" and is in an agenda file > 3. The item you are trying to refile is in the same file > as the refile target - in that case, the entry > is shown as a headline with level <= 2 > > Looking at your setting for org-refile-targets, > this is definitely somehing that could happen to you. > > I am not sure how cheap it would be to eliminate > duplicate entries, this might be an N^2 operation. It is if you use a linear list ;-) A hash table should allow an O(N) solution. > In the end, it is not a huge problem, I guess? Probably not. In my case it was purely a configuration mistake. -- Dave Abrahams BoostPro Computing http://www.boostpro.com