emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: GNRC <vd43210@yahoo.com>
To: Alexander Baier <alexander.baier@mailbox.org>
Cc: Bastien <bzg@gnu.org>, GNRC <vd43210@yahoo.com>, emacs-orgmode@gnu.org
Subject: Re: A version of `show-branches' that doesn't expandarchivedsubtreesss
Date: Fri, 30 May 2014 13:15:13 -0500	[thread overview]
Message-ID: <87ha47kua6.fsf@h.attlocal.net> (raw)
In-Reply-To: <87ha47i53x.fsf@mailbox.org>


Alexander Baier <alexander.baier@mailbox.org> writes:

> On 2014-05-30 18:27 GNRC wrote:
>> Say I've got the following file:
>> --begin--
>> * Top
>> ** Second
>> *** Third
>> ** Archive :ARCHIVE:
>> *** Thing
>> *** Another thing
>> --end--
>> I'd like to be able to put the cursor at the beginning of that top
>> heading and press (e.g.) C-u C-c C-k, and have it then fold as
>> this:
>> --begin--
>> * Top
>> ** Second
>> *** Third
>> ** Archive :ARCHIVE:...
>> --end--
>
> I do not know how to do this with C-c C-k, but pressing TAB twice on the
> level one heading works for me just as well. The subtree tagged
> with :ARCHIVE: will only open when you press C-TAB.
Ah, my example was incomplete:
Start with
--8<---------------cut here---------------start------------->8---
* Top
top contents
** Second
second contents
*** Third
third contents
** Archive :ARCHIVE:
*** Thing
thing contents
*** Another thing
another thing contents
--8<---------------cut here---------------end--------------->8---
and then get to 
--8<---------------cut here---------------start------------->8---
* Top
** Second
*** Third
** Archive :ARCHIVE:...
--8<---------------cut here---------------end--------------->8---
TAB twice shows the contents. I just want to see the heading structure,
but not that which is under archived subtrees.
>
>> (Side note: what's the function for the pretty scissors begin/end
>> thing?)
>
> Do you mean `message-mark-inserted-region', bound to C-c m in gnus?
Yup, thanks. I'm using mu4e, so it C-c M-m, for any interested mu4e users.
>
> HTH,

      reply	other threads:[~2014-05-30 18:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30  2:07 A version of `show-branches' that doesn't expand archived subtrees GNRC
2014-05-30  5:53 ` Bastien
2014-05-30 16:27   ` A version of `show-branches' that doesn't expand archivedsubtreess GNRC
2014-05-30 16:49     ` Alexander Baier
2014-05-30 18:15       ` GNRC [this message]

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=87ha47kua6.fsf@h.attlocal.net \
    --to=vd43210@yahoo.com \
    --cc=alexander.baier@mailbox.org \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /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).