From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ali Tofigh Subject: Re: CONTENTS visibility for subtrees Date: Mon, 26 Apr 2010 17:41:04 -0400 Message-ID: References: <87sk6hsy6a.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6W3X-0006f4-Vb for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 17:41:32 -0400 Received: from [140.186.70.92] (port=44246 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6W3W-0006eU-K4 for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 17:41:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6W3V-00024Z-4f for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 17:41:30 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:35921) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6W3V-00024R-0W for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 17:41:29 -0400 Received: by vws18 with SMTP id 18so318526vws.0 for ; Mon, 26 Apr 2010 14:41:28 -0700 (PDT) In-Reply-To: <87sk6hsy6a.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode On Mon, Apr 26, 2010 at 17:26, Bernt Hansen wrote: > Ali Tofigh writes: > >> Hi everyone, >> >> I love the CONTENTS visibility state for my org documents. But when I >> visit headings and use TAB to expand them revealing the text they >> contain, I want to be able to fold some of them back and show only the >> subheadings (all sublevels). Is there a way of accomplishing this? I >> can't find it in the manual. > > TAB both folds and unfolds. =C2=A0You can use S-TAB to do this globally > getting back to your contents view. True, but TAB on a headline will not give you the CONTENTS visibility for a subtree, i.e, using TAB on a heading never gets to a point where only the subheadings are shown. And S-TAB is global, while I want something local: I don't want to fold all the trees that I have previously opened. As an example: * H1 ** H11 ** H12 * H2 ** H21 ** H22 First, I want to see the text under H1 so I use TAB on it. Then I want to see the text on H2 so I use TAB on that. Now I want to basically undo my use of TAB: I want to fold H2 so that I can still see the subheadings (H21 and H22) but no text, and I want to keep the visibility state of H1 intact. Cheers, /Ali