emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Fritjof <fritjofl@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: search and destroy bug?
Date: Sun, 30 Jan 2011 15:31:49 +0100	[thread overview]
Message-ID: <2973D2A3-FAE1-440C-8140-77849BE9FC6B@gmail.com> (raw)
In-Reply-To: <op.vp4kh2t34atv21@bicetre>


On Jan 30, 2011, at 3:14 PM, Fritjof wrote:

> When searching for something with C-/-/ and then deleting found  
> subheadings with C-k, subheadings at the same level and below the  
> deleted subheading is also deleted. The same is true when deleting  
> subheadings found with C-/-m.
>
> Reproduce with:
>
> * heading
> ** 1
> ** 2
> ** 3
> ** 4
>
> Then C-/-/ 2, and C-k the subheading "2", fold and unfold "heading",  
> only "1" remains.

Hi Fritjof,

this is because org tries to represent the results as compactly as  
possible.
However, the state of the tree is not strictly like a tree you'd  
create by drilling
into it with only TAB.

For a less compact (and safer) representation, see the variables
org-show-following-heading
org-show-siblings
org-show-entry-blow

These variables give very fine control about how the tree should look  
after various operations.  For example, try

(setq org-show-following-heading '((occur-tree . t) (default . nil)))

Hope this helps

- Carsten



>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2011-01-30 14:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-30 14:14 search and destroy bug? Fritjof
2011-01-30 14:31 ` Carsten Dominik [this message]

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=2973D2A3-FAE1-440C-8140-77849BE9FC6B@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fritjofl@gmail.com \
    /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).