emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Paul Sexton <psexton@xnet.co.nz>
Cc: emacs-orgmode@gnu.org
Subject: Re: Folding org drawers in elisp code?
Date: Mon, 30 Aug 2010 09:50:26 +0200	[thread overview]
Message-ID: <FD65C6DC-41E1-475B-BD77-2DB8BE508DE5@gmail.com> (raw)
In-Reply-To: <loom.20100823T212103-989@post.gmane.org>


On Aug 23, 2010, at 9:22 PM, Paul Sexton wrote:

> Can anyone tell me how I can write elisp code to force drawers to  
> appear closed
> (folded) in an org buffer?


(org-cycle-hide-drawers 'all)

will cover the whole buffer.  Other arguments will cover smaller
sections, depending on what org-cycle just did.

In fact, you might want to look at all the functions in
org-cycle-hook, they do various kinds of cleanup after visibility
has been changed.

Best wishes

- Carsten

      reply	other threads:[~2010-08-30  7:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 19:22 Folding org drawers in elisp code? Paul Sexton
2010-08-30  7:50 ` Carsten Dominik [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=FD65C6DC-41E1-475B-BD77-2DB8BE508DE5@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=psexton@xnet.co.nz \
    /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).