From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: What does C-c C-r do? Date: Mon, 26 Mar 2007 17:00:20 +0200 Message-ID: <47345e7f99270884f4dd3a10051a15d8@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVqib-0003hQ-0z for emacs-orgmode@gnu.org; Mon, 26 Mar 2007 11:02:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVqiZ-0003dd-EQ for emacs-orgmode@gnu.org; Mon, 26 Mar 2007 11:02:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVqiZ-0003dB-9j for emacs-orgmode@gnu.org; Mon, 26 Mar 2007 10:02:43 -0500 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVqgJ-0008Mp-3i for emacs-orgmode@gnu.org; Mon, 26 Mar 2007 11:00:23 -0400 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: Leo Cc: emacs-orgmode@gnu.org On Mar 25, 2007, at 10:51, Leo wrote: > Dear all, > > I still haven't figured out what `C-c C-r' does. Can someone give me > an example to see the effect of C-c C-r? Thanks in advance. 1. Set all context variables to nil: (setq org-show-hierarchy-above nil org-show-following-heading nil org-show-siblings nil) 2. Use a simple hierarchy, with (for example) TODO entries, like this. * main 1 ** sub *** sub 1-1 *** sub 1-2 *** TODO sub 1-3 *** sub 1-4 **** deeper *** sub 1-5 3. Display the TODO sparse tree with C-c C-v. 4. Move the cursor into the TODO line and observe the effects of C-c C-r and C-u C-c C-r. C-c C-r is there to show more context around an exposed location, to "repair" the tree. Basically, C-c C-r will show the sibling following the TODO match, so that you can easily edit the TODO subtree and know exactly where it ends. C-u C-c C-r will "repair" the tree to a state which you could also have gotten using visibility cycling: Start at OVERVIEW visibility, and then press TAB at "main" and then TAB at "sub". Hope this make it clearer. - Carsten > > ,----[ (info "(org)Visibility cycling") ] > | `C-c C-r' > | Reveal context around point, showing the current entry, the > | following heading and the hierarchy above. Useful for working > | near a location exposed by a sparse tree command (*note Sparse > | trees::) or an agenda command (*note Agenda commands::). With > | prefix arg show, on each level, all sibling headings. > `---- > > Regards, > -- > Leo (GPG Key: 9283AA3F) > > > > _______________________________________________ > 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