From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: How to define TODOs within continuous text the best way? Date: Mon, 30 Mar 2009 16:18:01 -0400 Message-ID: <87r60edati.fsf@gollum.intra.norang.ca> References: <49CE32EC.5060508@gmx.de> <51053970-C604-4B96-B3D5-B9F79BD0472C@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoNw6-0004ug-3O for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 16:18:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoNw2-0004qO-R6 for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 16:18:21 -0400 Received: from [199.232.76.173] (port=48771 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoNw2-0004qA-M9 for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 16:18:18 -0400 Received: from mx20.gnu.org ([199.232.41.8]:9866) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LoNw2-0006TG-Ax for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 16:18:18 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoNvy-0003AG-7j for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 16:18:14 -0400 In-Reply-To: <51053970-C604-4B96-B3D5-B9F79BD0472C@gmail.com> (Carsten Dominik's message of "Mon\, 30 Mar 2009 13\:47\:09 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Org Mode List Carsten Dominik writes: > Sometimes, miracles do happen. :) > Fool the user, not Org! > > We will make them just normal outline nodes with stars, > metadata and all the rest. Full citizens. But then we treat > them specially in just two situations: > > 1. For visibility cycling: We disqualify these tasks from being > recognized during visibility cycling. Simply by setting a > limit for the outline depth to be seen by cycling, treating > any deeper levels as normal text. So if the parent opens, all > these "disqualified" nodes are treated as text and open as > well. > > 2. During export: We treat the node and its meta data as special > and export it as some inline construct, and we do this in the > export *preprocessor* already, so that the backends never know > there was an outline node at all. This fixes any issues with > section numbering, text and list continuation etc. > > 3. As icing on the cake we introduce special fontification which > make inline tasks look deeply indented. > > I have put these features into a new add-on, org-inlinetask.el. > Just (require 'org-inlinetask) should turn it on for you, and > any headline with a level 15 or deeper (30 if you use odd levels > only) will then be subject to the special treatment. > > I just pushed this file into the git repository. Read the file > commentary for explanations and try it out - I think the > mechanism work surprisingly well. > > I simply cannot believe that after all those years, we might be > able to close this task. I think there's a bug here. I have started using=20 (setq org-odd-levels-only t) again and org-cycle() complains about 'limit' not having a value. ,----[ org.el line 4533 ] | (and limit-level (1- (* limit 2))) `---- ^^^^^ All I did was update to the latest version in git and did not make any other changes to my setup (ie. I'm not using the (require 'org-inlinetask) stuff) I'm not sure what this is supposed to be.. Here's the backtrace. -Bernt Debugger entered--Lisp error: (void-variable limit) (* limit 2) (1- (* limit 2)) (and limit-level (1- (* limit 2))) (if org-odd-levels-only (and limit-level (1- ...)) limit-level) (and limit-level (if org-odd-levels-only (and limit-level ...) limit-leve= l)) (let* ((limit-level ...) (nstars ...) (outline-regexp ...) (bob-special .= ..) (org-cycle-hook ...) (pos ...)) (if (or bob-special ...) (setq arg t)) = (cond (... ... ...) (... ... ...) (... ...) (... ...) (... ...) (... ...) (= ... ... ...) (buffer-read-only ...) (...) (...) (... ...) (... ...) (t ...)= )) org-cycle(nil) call-interactively(org-cycle) recursive-edit() byte-code("=C3=86=10 @=C3=87=3D=C2=83!=00=C3=88=C3=89=C3=8A\"=C2=88=C3=8B= =C3=89!=C2=89=1AA@)=C2=A2=C3=8C=3D=C2=83!=00=C3=88=C3=8D=C3=8A\"=C2=88=C3= =8E=0B!=C2=88=C3=8F =C2=88=C3=90 !=C2=88\f=C2=83c=00=C3=91ed\"=0DV=C2=83W= =00eb=C2=88=C3=92=0D=C2=A5y=C2=88`=1E=1Bdb=C2=88=C3=92=0D=C2=A5=0DZy=C2=88= =0E=1B`|=C2=88)=C3=93c=C2=88eb=C2=88=C3=94=C3=95=C3=96 \"=C2=88=C3=97 =C2= =88=C3=94=C3=98!=C2=88=C3=99=C3=8A=1E=1C=1E=1D=C3=94=C3=98!=C2=88=C2=8A=C3= =9A =C2=88+=C3=99=C2=87" [unread-command-char debugger-args x debugger-buff= er noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t bac= ktrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer cou= nt-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-e= dit middlestart buffer-read-only standard-output] 4) debug(error (void-variable limit)) (* limit 2) (1- (* limit 2)) (and limit-level (1- (* limit 2))) (if org-odd-levels-only (and limit-level (1- ...)) limit-level) (and limit-level (if org-odd-levels-only (and limit-level ...) limit-leve= l)) (let* ((limit-level ...) (nstars ...) (outline-regexp ...) (bob-special .= ..) (org-cycle-hook ...) (pos ...)) (if (or bob-special ...) (setq arg t)) = (cond (... ... ...) (... ... ...) (... ...) (... ...) (... ...) (... ...) (= ... ... ...) (buffer-read-only ...) (...) (...) (... ...) (... ...) (t ...)= )) org-cycle(nil) call-interactively(org-cycle) recursive-edit() byte-code("=C3=86=10 @=C3=87=3D=C2=83!=00=C3=88=C3=89=C3=8A\"=C2=88=C3=8B= =C3=89!=C2=89=1AA@)=C2=A2=C3=8C=3D=C2=83!=00=C3=88=C3=8D=C3=8A\"=C2=88=C3= =8E=0B!=C2=88=C3=8F =C2=88=C3=90 !=C2=88\f=C2=83c=00=C3=91ed\"=0DV=C2=83W= =00eb=C2=88=C3=92=0D=C2=A5y=C2=88`=1E=1Bdb=C2=88=C3=92=0D=C2=A5=0DZy=C2=88= =0E=1B`|=C2=88)=C3=93c=C2=88eb=C2=88=C3=94=C3=95=C3=96 \"=C2=88=C3=97 =C2= =88=C3=94=C3=98!=C2=88=C3=99=C3=8A=1E=1C=1E=1D=C3=94=C3=98!=C2=88=C2=8A=C3= =9A =C2=88+=C3=99=C2=87" [unread-command-char debugger-args x debugger-buff= er noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t bac= ktrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer cou= nt-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-e= dit middlestart buffer-read-only standard-output] 4) debug(error (void-variable limit)) (* limit 2) (1- (* limit 2)) (and limit-level (1- (* limit 2))) (if org-odd-levels-only (and limit-level (1- ...)) limit-level) (and limit-level (if org-odd-levels-only (and limit-level ...) limit-leve= l)) (let* ((limit-level ...) (nstars ...) (outline-regexp ...) (bob-special .= ..) (org-cycle-hook ...) (pos ...)) (if (or bob-special ...) (setq arg t)) = (cond (... ... ...) (... ... ...) (... ...) (... ...) (... ...) (... ...) (= ... ... ...) (buffer-read-only ...) (...) (...) (... ...) (... ...) (t ...)= )) org-cycle(nil) call-interactively(org-cycle) yas/expand() call-interactively(yas/expand)