From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug] TODO [/] cookie not updating if list has inline task Date: Sun, 17 May 2015 21:02:24 +0200 Message-ID: <87lhgnxc1r.fsf@gmx.us> References: <877fs75tzk.fsf@ucl.ac.uk> <87r3qfgvm4.fsf@gmx.us> <877fs782c3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu3pY-0002k7-I4 for emacs-orgmode@gnu.org; Sun, 17 May 2015 15:02:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yu3pV-00069U-BP for emacs-orgmode@gnu.org; Sun, 17 May 2015 15:02:32 -0400 Received: from mout.gmx.net ([212.227.15.18]:51433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu3pV-000678-1G for emacs-orgmode@gnu.org; Sun, 17 May 2015 15:02:29 -0400 Received: from W530 ([88.19.189.71]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LmbZb-1ZTwkD2brf-00aCp8 for ; Sun, 17 May 2015 21:02:26 +0200 In-Reply-To: <877fs782c3.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 17 May 2015 20:51: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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> Can you try the attached patch? It seems to work on my system, but >> probably more cleanup should be made wrt the "old" outline-functions. >> + (org-with-wide-buffer >> + (org-next-visible-heading 1) >> + (point))))) > > 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. But perhaps a better solution would be an org-next-heading or whatever, that considered inlinetasks. > 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? > Anyway, we could fix it in another way. Eric's example, > > - [ ] the first task >=20=20=20=20=20 > *************** This is something to note > *************** END > > - [ ] another list of tasks > > is misleading because it's really the same list, i.e., inlinetasks are > allowed in items, so "This is something to note" belongs to "the first > task". > > So, our option is to simply dis-allow inlinetasks in plain lists. That > would also solve the issue. It solves the problem, unless Eric wants inlinetasks in his list. The "solution" in my other patch recognized both checkboxes. > WDYT? I haven't needed inlinetasks in lists. So I don't care much. Better wait for Eric's opinion. =E2=80=94Rasmus --=20 I feel emotional landscapes they puzzle me