emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: scrawler@gmail.com
Cc: orgmode list <emacs-orgmode@gnu.org>
Subject: Re: todo autochange to done
Date: Wed, 12 Aug 2015 23:39:24 -0500	[thread overview]
Message-ID: <87pp2ru7ib.fsf@fastmail.fm> (raw)
In-Reply-To: <20150813024746.GA7552@bigblessing.localdomain> (scrawler@gmail.com's message of "Wed, 12 Aug 2015 21:47:46 -0500")

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 (= 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 ’.

Matt

  reply	other threads:[~2015-08-13  4:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13  2:47 todo autochange to done scrawler
2015-08-13  4:39 ` Matt Lundin [this message]
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=87pp2ru7ib.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=scrawler@gmail.com \
    /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).