[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] todo autochange to done

From: Matt Lundin
Subject: Re: [O] todo autochange to done
Date: Wed, 12 Aug 2015 23:39:24 -0500
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

address@hidden writes:

> In the manual, section 5.5, there is a function shown that would allow
> a "TODO entry to automatically change to DONE when all children are
> done". Here it is:
> ;>>>>>
> (defun org-summary-todo (n-done n-not-done)
>  "Switch entry to DONE when all subentries are done, to TODO otherwise."
>  (let (org-log-done org-log-states)
>                                       ; turn off logging
>    (org-todo (if (= n-not-done 0) "finished" ":-)"))))
> (add-hook ’org-after-todo-statistics-hook ’org-summary-todo)
> ;<<<<<
> I get this:
> Symbol's value as variable is void: ’org-after-todo-statistics-hook

Check the quote character before org-after-todo-statistics-hook and
org-summary-todo: it should be ' not ’.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]