From mboxrd@z Thu Jan 1 00:00:00 1970 From: scrawler@gmail.com Subject: todo autochange to done Date: Wed, 12 Aug 2015 21:47:46 -0500 Message-ID: <20150813024746.GA7552@bigblessing.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPiYL-000051-SW for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 22:47:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPiYF-0000Qq-TW for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 22:47:37 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:57926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPiYF-0000Qm-QT for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 22:47:31 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9148722B0B for ; Wed, 12 Aug 2015 22:47:31 -0400 (EDT) Received: from bigblessing (fl-67-235-134-230.dhcp.embarqhsd.net [67.235.134.230]) by mail.messagingengine.com (Postfix) with ESMTPA id 88CD768016C for ; Wed, 12 Aug 2015 22:47:30 -0400 (EDT) Content-Disposition: inline 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: 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" :-)