From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Visibility cycling with inline tasks Date: Sat, 22 Sep 2012 11:03:19 +0200 Message-ID: <0AE7682A-11CF-429D-851D-1608C899936F@gmail.com> References: <87ehlypags.fsf@bzg.ath.cx> <878vc2xwec.fsf@bzg.ath.cx> Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFLcP-0004u9-0O for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 05:03:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFLcN-00070K-Vd for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 05:03:20 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:34396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFLcN-0006zv-PV for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 05:03:19 -0400 Received: by wgbdt14 with SMTP id dt14so2476574wgb.30 for ; Sat, 22 Sep 2012 02:03:18 -0700 (PDT) In-Reply-To: <878vc2xwec.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 GReat, thanks! - Carsten On 22.9.2012, at 11:02, Bastien wrote: > Hi Carsten, >=20 > Carsten Dominik writes: >=20 >> I agree that this would be a good default, but not with a hard-coded = 6. >>=20 >> (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)))))) >>=20 >>=20 >> 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 >=20 > Done in master. Thanks! >=20 > --=20 > Bastien