From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] TODO [/] cookie not updating if list has inline task Date: Sun, 17 May 2015 23:56:38 +0200 Message-ID: <87pp5y7trd.fsf@nicolasgoaziou.fr> References: <877fs75tzk.fsf@ucl.ac.uk> <87r3qfgvm4.fsf@gmx.us> <877fs782c3.fsf@nicolasgoaziou.fr> <87lhgnxc1r.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu6Wi-0003jB-ND for emacs-orgmode@gnu.org; Sun, 17 May 2015 17:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yu6Wh-00051v-B9 for emacs-orgmode@gnu.org; Sun, 17 May 2015 17:55:16 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:45187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu6Wh-00051g-5d for emacs-orgmode@gnu.org; Sun, 17 May 2015 17:55:15 -0400 In-Reply-To: <87lhgnxc1r.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 17 May 2015 21:02:24 +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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: >> You shouldn't use `org-next-visible-heading' as statistics cookie >> updates shouldn't depend on current visibility. > > That's why I used org-with-wide-buffer. This is orthogonal. `o-w-w-b' is about narrowing. `o-n-v-h' ignores inlinetasks. > But perhaps a better solution would be an org-next-heading or > whatever, that considered inlinetasks. I'm not sure what you mean. `outline-next-heading'? >> Also, the problem is more subtle: you have to check if you're within an >> inlinetask, in which case you don't want to use >> `org-with-limited-levels' or not. > > Is that saying that org-with-wide-buffer is no good here? I'm saying `org-next-visible-heading', or, more precisely, `org-with-limited-levels' is no good here. See `org-get-property-block' for an example. Regards,