emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* search and destroy bug?
@ 2011-01-30 14:14 Fritjof
  2011-01-30 14:31 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Fritjof @ 2011-01-30 14:14 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: search and destroy bug?
  2011-01-30 14:14 search and destroy bug? Fritjof
@ 2011-01-30 14:31 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2011-01-30 14:31 UTC (permalink / raw)
  To: Fritjof; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-30 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-30 14:14 search and destroy bug? Fritjof
2011-01-30 14:31 ` Carsten Dominik

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).