From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: todo autochange to done Date: Wed, 12 Aug 2015 23:39:24 -0500 Message-ID: <87pp2ru7ib.fsf@fastmail.fm> References: <20150813024746.GA7552@bigblessing.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPkIg-0005v6-QS for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 00:39:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPkIZ-0006vm-LB for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 00:39:32 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPkIZ-0006vf-Hs for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 00:39:27 -0400 In-Reply-To: <20150813024746.GA7552@bigblessing.localdomain> (scrawler@gmail.com's message of "Wed, 12 Aug 2015 21:47:46 -0500") 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: scrawler@gmail.com Cc: orgmode list scrawler@gmail.com 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 (=3D n-not-done 0) "finished" ":-)")))) > (add-hook =E2=80=99org-after-todo-statistics-hook =E2=80=99org-summary-to= do) > > ;<<<<< > > I get this: > Symbol's value as variable is void: =E2=80=99org-after-todo-statistics-ho= ok Check the quote character before org-after-todo-statistics-hook and org-summary-todo: it should be ' not =E2=80=99. Matt