emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Leo <sdl.web@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: What does C-c C-r do?
Date: Mon, 26 Mar 2007 17:00:20 +0200	[thread overview]
Message-ID: <47345e7f99270884f4dd3a10051a15d8@science.uva.nl> (raw)
In-Reply-To: <m2wt15puyc.fsf@sl392.st-edmunds.cam.ac.uk>


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 <sdl.web AT gmail.com>                         (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

  reply	other threads:[~2007-03-26 15:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-25  8:51 What does C-c C-r do? Leo
2007-03-26 15:00 ` Carsten Dominik [this message]
2007-03-26 15:23   ` Leo
2007-03-26 15:32     ` Carsten Dominik

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=47345e7f99270884f4dd3a10051a15d8@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=sdl.web@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).