emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: scrawler@gmail.com
To: orgmode list <emacs-orgmode@gnu.org>
Subject: todo autochange to done
Date: Wed, 12 Aug 2015 21:47:46 -0500	[thread overview]
Message-ID: <20150813024746.GA7552@bigblessing.localdomain> (raw)

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"
:-)

             reply	other threads:[~2015-08-13  2:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13  2:47 scrawler [this message]
2015-08-13  4:39 ` todo autochange to done Matt Lundin
2015-08-13 13:05   ` scrawler
2015-08-13 13:14     ` scrawler
2015-08-13 13:20       ` scrawler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150813024746.GA7552@bigblessing.localdomain \
    --to=scrawler@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).