all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* todo autochange to done
@ 2015-08-13  2:47 scrawler
  2015-08-13  4:39 ` Matt Lundin
  0 siblings, 1 reply; 5+ messages in thread
From: scrawler @ 2015-08-13  2:47 UTC (permalink / raw)
  To: orgmode list

Hey guys,

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

What's going on?
thanks!
-- 
signature to baby: "doobywoobybooboo"
:-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-13 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-13  2:47 todo autochange to done scrawler
2015-08-13  4:39 ` Matt Lundin
2015-08-13 13:05   ` scrawler
2015-08-13 13:14     ` scrawler
2015-08-13 13:20       ` scrawler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.