From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Visibility cycling with inline tasks Date: Wed, 19 Sep 2012 12:59:19 +0200 Message-ID: References: <87ehlypags.fsf@bzg.ath.cx> Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEI0i-0000yt-1e for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 07:00:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEI01-0000Dm-92 for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 07:00:03 -0400 Received: from ezel.ic.uva.nl ([146.50.108.158]:36747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEI00-0000Dg-VX for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 06:59:21 -0400 In-Reply-To: <87ehlypags.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Org Mode , Christopher Witte On 19 sep. 2012, at 12:34, Bastien wrote: > Hi Christopher, > > Christopher Witte writes: > >> I have a document with lots of inline tasks scattered throughout it. I >> want to get an overview of the document so I use S- to cycle to >> CONTENTS, when I do that all of the inline tasks are displayed like >> this: > > You can add this hook: > > (add-hook 'org-cycle-hook > (lambda (state) (when (eq state 'contents) (hide-sublevels 6)))) > >> Should this be the default? Is this also the behaviour that other >> people expect? > > I tend to think this should be the default but I'm not using inline > tasks at all, so I'll wait other users' feedback on this. I agree that this would be a good default, but not with a hard-coded 6. (add-hook 'org-cycle-hook (lambda (state) (when (eq state 'contents) (and (boundp 'org-inlinetask-min-level) org-inlinetask-min-level (hide-sublevels (1- org-inlinetask-min-level)))))) And it is probably better to wrap this into a function and add that function to the default value of org-cycle-hook, after org-cucle-hide-drawers - Carsten