emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Deech <aditya_siram@hotmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org Mode Searching Bug?
Date: Mon, 15 Jan 2007 17:23:32 +0100	[thread overview]
Message-ID: <e24170653a7224458e1f3caa0cdf61fb@gmail.com> (raw)
In-Reply-To: <loom.20070112T171738-212@post.gmane.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

  parent reply	other threads:[~2007-01-15 16:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12 17:43 Org Mode Searching Bug? Deech
2007-01-14 15:27 ` Bastien
2007-01-15 16:23 ` Carsten Dominik [this message]
2007-01-15 17:08   ` Aditya Siram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e24170653a7224458e1f3caa0cdf61fb@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=aditya_siram@hotmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).