From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: search and destroy bug? Date: Sun, 30 Jan 2011 15:31:49 +0100 Message-ID: <2973D2A3-FAE1-440C-8140-77849BE9FC6B@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42863 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjYJo-0003cw-Rh for emacs-orgmode@gnu.org; Sun, 30 Jan 2011 09:31:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjYJn-0007iT-N0 for emacs-orgmode@gnu.org; Sun, 30 Jan 2011 09:31:56 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:46514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjYJn-0007i2-Hl for emacs-orgmode@gnu.org; Sun, 30 Jan 2011 09:31:55 -0500 Received: by bwz16 with SMTP id 16so4808120bwz.0 for ; Sun, 30 Jan 2011 06:31:54 -0800 (PST) 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: Fritjof Cc: emacs-orgmode@gnu.org 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