From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Folding org drawers in elisp code? Date: Mon, 30 Aug 2010 09:50:26 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=48003 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpzBo-0002Id-36 for emacs-orgmode@gnu.org; Mon, 30 Aug 2010 03:54:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Opz8R-0006qY-2o for emacs-orgmode@gnu.org; Mon, 30 Aug 2010 03:50:31 -0400 Received: from paard.ic.uva.nl ([145.18.40.182]:34352) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Opz8Q-0006qQ-Os for emacs-orgmode@gnu.org; Mon, 30 Aug 2010 03:50:31 -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: Paul Sexton Cc: emacs-orgmode@gnu.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