From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: clocking into an inline task before any headings Date: Fri, 23 Aug 2013 11:56:29 +0200 Message-ID: <5EEF3962-E89F-4BBA-AB47-C5525A9C964D@gmail.com> References: <87zjsk731b.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCo6g-00064w-A8 for Emacs-orgmode@gnu.org; Fri, 23 Aug 2013 05:56:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCo6b-0002RV-2B for Emacs-orgmode@gnu.org; Fri, 23 Aug 2013 05:56:38 -0400 Received: from mail-ea0-x230.google.com ([2a00:1450:4013:c01::230]:32885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCo6a-0002RK-Pf for Emacs-orgmode@gnu.org; Fri, 23 Aug 2013 05:56:33 -0400 Received: by mail-ea0-f176.google.com with SMTP id q16so192425ead.21 for ; Fri, 23 Aug 2013 02:56:31 -0700 (PDT) In-Reply-To: <87zjsk731b.fsf@gmail.com> 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: Myles English Cc: Emacs-orgmode On 14.8.2013, at 16:36, Myles English wrote: > Hello, >=20 > Are inline tasks allowed to be used before any other headings? (I = hope > they are.) No, they are not. Why don't you just make it a normal headline? - Carsten >=20 > Starting with >=20 > $ emacs -Q >=20 > and with nothing more than a >=20 > (require 'org-inlinetask) >=20 > I am able to insert an inline task with C-c C-x t but when I try to > clock in, "CLOCK:" is inserted on a line directly below the task title > and I get this Backtrace: >=20 > Debugger entered--Lisp error: (error "Before first headline at = position 120 in buffer a.org") > signal(error ("Before first headline at position 120 in buffer = a.org")) > error("Before first headline at position %d in buffer %s" 120 = #) > byte-code("\300\301`p#\207" [error "Before first headline at position = %d in buffer %s"] 4) > org-back-to-heading(t) > org-narrow-to-subtree() > org-clock-sum-current-item(nil) > byte-code("=08?\205=07\306 \307\211\211\310 = ?\205\n=1C=1E@ABC\203=3D=0EB\203+=0EC\311=3D\203=3D=0ED\204=3D = \204=3D\307\311D\312 = \210)E\313\232\203N\311F\314\307G\"\210)E\315\232\203k\316\317!\211@\203g\= 320@!@\202k\321\322!\210E\323\232\203u\324 = \210B\203\331\212@\204\204\325\311!\210\326H!@\203\224\326@!\202\225p\232\= 205\265\327H!@\203\251\327@!\202\252`U\205\265=0EI\330\331 = 8\232)\203\304\332\333J\"\210\334\335\307\"\210K\327L!\326L!\223\210\311D\= 336\307\311\"\210)m\203\350\337 = \204\350\340\341!\202\351`\212@\203\n\326@!\203\n\342\326@!!q\210\327@!=0E= @\307\211\223\210\212\214~\210b\210\325\311!\210B\204 = =0EK\307\211\223\210\212\307u\210\343\344!\210\345 \210)\346 = \210\347M!\203P\350N!\210M\351\352!!\211O\203L\353O!\210)\202f=0EM\203f\35= 0P\354M\355R!\204f\353M!\210\350N!\205y\330\225\205y\356\357\225\330\225{!= QR\203\215\347R!\203\215=0ER = \202\245\350N!\203\244\351\330!\203\244\360\361\362\351\330!#\202\245\363J= \364J\365\307#J\366S!\210S\203\367\350\367T\370\371R!\203\367\332\372\351\= 357!\"\210\373\351\357!\374QA\357\225b\210\375\376\377\351\357!!\"U\201b`V= \"W\201c\201d !X\202\256=0ES\201e=3D\203=02\332\201f!\210\201g = \210\201h\352!\210\334\335\307\"\210\202\256\201i\201j!\210\201ku\210\201l= \210\212\341=7F\210\201m )\203H\201n\357!\210\201o\201p = \352Z!\210T\201q\261\210\201b`V\"W\201c\201d !XF\203m=0EG\206\236=0B= \203\225\201r\201s\201t\201u\201v !\201u=0B!Z\201w\245\"!\203\225=0B= \206\236=0EY\206\236\201v U\201x=0EU\201y\201z#AL`\201{ = \223\210H\212\325\311!\210`)\201{ = \223\210\311Z[\201|=3D\204\333=0E[\201}=3D\203\371=0E\\\204\345\201~=16\\\= 201=7F=0E\\>\204\371\201\200=0E\\\201\201\"\\[\201\202=3D\204=0B= =0E[\201}=3D\203=03]^\201\203 = \210_\203#\201\204=0E_!\210\307_[\2034\201\205=0E`\211\201\203#_a\203C\201= \204=0Ea!\210\307a\201\205\201w\211\201\206#a\332\201\207=0EA\f#\210\343\2= 01\210!. \207" [org-clock-resolving-clocks-due-to-idleness = org-clock-resolving-clocks org-clock-leftover-time leftover msg-extra = target-pos org-clocking-p nil "" t org-resolve-clocks (64) org-clock-in = (4) org-clock-select-task "Clock-in on task: " copy-marker error "Abort" = (16) org-clock-mark-default-task org-back-to-heading marker-buffer = marker-position 4 org-heading-components message "Clock continues in = \"%s\"" throw abort org-clock-out org-at-heading-p point-at-bol 0 = org-base-buffer run-hooks org-clock-in-prepare-hook = org-clock-history-push org-clock-set-current functionp looking-at = match-string 2 org-todo "[ ]*" "\\>" org-trim 1 = replace-regexp-in-string "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" ...] 7) > org-clock-in(nil) > call-interactively(org-clock-in nil nil) >=20 > This is the behaviour as of commit 75f73e0b87a. >=20 > Inserting a heading above the tasks allows it to be clocked into. >=20 > Thanks, >=20 > Myles >=20