From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Visibility cycling with inline tasks Date: Sat, 22 Sep 2012 11:02:51 +0200 Message-ID: <878vc2xwec.fsf@bzg.ath.cx> References: <87ehlypags.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFLbw-0004Ni-2U for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 05:02:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFLbu-0006lF-NC for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 05:02:51 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:62210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFLbu-0006jr-GW for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 05:02:50 -0400 Received: by wibhq4 with SMTP id hq4so2425832wib.12 for ; Sat, 22 Sep 2012 02:02:49 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Wed, 19 Sep 2012 12:59:19 +0200") 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: Carsten Dominik Cc: Org Mode , Christopher Witte Hi Carsten, Carsten Dominik writes: > 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 Done in master. Thanks! -- Bastien