无法组织时钟进入组织议程中的任务

Can't org-clockin into the task in Org Agenda

当我尝试 org-clockinOrg Agenda 进入任务时,我不断收到以下错误:

Debugger entered--Lisp error: (error "Before first headline at position 80 in buffer *Org Agenda*")
  signal(error ("Before first headline at position 80 in buffer *Org Agenda*"))
  error("Before first headline at position %d in buffer %s" 80 #<buffer *Org Agenda*>)
  #[257 "01`p#7" [error "Before first headline at position %d in buffer %s"] 5 "\n\n(fn IGNORED)"]((error "before first heading"))
  funcall(#[257 "01`p#7" [error "Before first headline at position %d in buffer %s"] 5 "\n\n(fn IGNORED)"] (error "before first heading"))
  org-back-to-heading(t)
  #[0 "\n?56 7110?5\f@353#@1=35A454571A2 0)0323E1B47C\"0)0523`67!23\0!22`12!00323i4 03724v51!06D!346!25p2537D!377!20`U53E01 82)3223F\"0457\"0G7H!6H!301A671\"0)m367 4601!27`22356!3526!!q07!2713024~0b051!04\nG713034!05 001 8E6I!397J7K!0)I01!!1352!002OI3O7L3I4R!4O2I!0M3a6M!3aM 2s01 83r56700!#2s1F2N!0N3773O45R!372607!\"0007!1Q275b023407!!\"P5`Q\"R67 !S2mN1]=3121^!01_ 01`1!0457\"02m1a1b!01cu01d 02101e )31f7!01g1h 1Z!0O1i105`Q\"R67 !SB3'C6]13R1j1k1l1m1nT1\"!1m!Z1o5\"!3R16]16]1nT1\"P1pP1q1r#2H`1s 30D251!0`)1s 301UV1t=42V1u=30W441vW1wW>401xW1y\"WV1z=42V1u=36XY1{ 0Z321|Z!07ZV331}[11{#Z\31|\!07\1}1o11~#\21
#0310!,7" [nil nil org-clock-resolving-clocks-due-to-idleness org-clock-resolving-clocks org-clock-leftover-time org--msg-extra 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 functionp looking-at match-string 2 org-todo "[   ]*" "\>" replace-regexp-in-string "\[\[.*?\]\[\(.*?\)\]\]" "\1" match-string-no-properties "???" ...] 13 "\n\n(fn)"]()
  funcall(#[0 "\n?56 7110?5\f@353#@1=35A454571A2 0)0323E1B47C\"0)0523`67!23\0!22`12!00323i4 03724v51!06D!346!25p2537D!377!20`U53E01 82)3223F\"0457\"0G7H!6H!301A671\"0)m367 4601!27`22356!3526!!q07!2713024~0b051!04\nG713034!05 001 8E6I!397J7K!0)I01!!1352!002OI3O7L3I4R!4O2I!0M3a6M!3aM 2s01 83r56700!#2s1F2N!0N3773O45R!372607!\"0007!1Q275b023407!!\"P5`Q\"R67 !S2mN1]=3121^!01_ 01`1!0457\"02m1a1b!01cu01d 02101e )31f7!01g1h 1Z!0O1i105`Q\"R67 !SB3'C6]13R1j1k1l1m1nT1\"!1m!Z1o5\"!3R16]16]1nT1\"P1pP1q1r#2H`1s 30D251!0`)1s 301UV1t=42V1u=30W441vW1wW>401xW1y\"WV1z=42V1u=36XY1{ 0Z321|Z!07ZV331}[11{#Z\31|\!07\1}1o11~#\21
#0310!,7" [nil nil org-clock-resolving-clocks-due-to-idleness org-clock-resolving-clocks org-clock-leftover-time org--msg-extra 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 functionp looking-at match-string 2 org-todo "[   ]*" "\>" replace-regexp-in-string "\[\[.*?\]\[\(.*?\)\]\]" "\1" match-string-no-properties "???" ...] 13 "\n\n(fn)"])
  org-clock-in(nil)
  call-interactively(org-clock-in nil nil)
  command-execute(org-clock-in)

我尝试更新 org 包,删除我所有的 org-agenda 文件以防文件出现问题,但似乎没有任何效果。 我正在使用最新版本的 spacemacs。我的大部分组织配置都来自这篇文章 - http://doc.norang.ca/org-mode.html

这个问题是在 emacs.stackexchange 上被问到的(我也在那里给了赏金)- https://emacs.stackexchange.com/questions/24058/error-when-trying-to-clock-in-agenda-buffer

使用函数 org-agenda-clock-in 而不是 org-clock-in

参见:http://orgmode.org/manual/Agenda-commands.html