From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org Mode Searching Bug? Date: Mon, 15 Jan 2007 17:23:32 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6Uca-0000ed-CV for emacs-orgmode@gnu.org; Mon, 15 Jan 2007 11:23:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6UcX-0000c2-6g for emacs-orgmode@gnu.org; Mon, 15 Jan 2007 11:23:43 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6UcX-0000bj-09 for emacs-orgmode@gnu.org; Mon, 15 Jan 2007 11:23:41 -0500 Received: from [149.217.40.2] (helo=mailer.mpia-hd.mpg.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6UcW-0002Jg-5U for emacs-orgmode@gnu.org; Mon, 15 Jan 2007 11:23:40 -0500 In-Reply-To: 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: Deech Cc: emacs-orgmode@gnu.org Hi Deech, this is intentional, the headline following a headline that matches the search is also shown, because it makes it easier to edit the headline and the entry below it without accidentally changing hidden text. If you are confident that you know outline-mode well enough, customize the variable `org-show-following-heading'. Get back to us if you cannot figure out how to modify it correctly - it is a relatively complex variable. While you are at it: there are two more variables that give you very fine-graned control over what exactly is displayed in sparse tree and other commands that expose previously hidden parts of the outline tree. org-show-hierarchy-above org-show-siblings Hope this helps - Carsten On Jan 12, 2007, at 18:43, Deech wrote: > Hi all, > I have been using org mode for the past month and on the whole it's > great. But I > am having trouble searching tags and sorting TODO items. > > If this is the original file: > > *PROJECTS > ** TODO Take out garbage :home: > Today is garbage + recycling > ** TODO Do the laundry :home: > ** DONE Pay car insurance :bills: > > Doing a 'C-c v'(to show only TODO items) also shows the DONE item, > like this: > > *PROJECTS > ** TODO Take out garbage :home: > ** TODO Do the laundry :home: > ** DONE Pay car insurance :bills: > > If I move the DONE item to the top of the list, 'C-c v' correctly > shows: > > *PROJECTS > ** TODO Take out garbage :home: > ** TODO Do the laundry :home: > > A similar phenomenon occurs when I search for the tag (C-c \) 'home'. > When I > query the original file, the output includes the 'bills' tag like this: > > *PROJECTS > ** TODO Take out garbage :home: > ** TODO Do the laundry :home: > ** DONE Pay car insurance :bills: > > Similarly, if I move the headline tagged with 'bills' to the top, the > search > outputs the right thing: > *PROJECTS > ** TODO Take out garbage :home: > ** TODO Do the laundry :home: > > This is a toy example I made up, but it does the same thing on > 'production' file > that I use daily. > > Any thoughts? > > Thanks... > Deech > > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477