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

* Re: todo autochange to done
  2015-08-13  2:47 todo autochange to done scrawler
@ 2015-08-13  4:39 ` Matt Lundin
  2015-08-13 13:05   ` scrawler
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Lundin @ 2015-08-13  4:39 UTC (permalink / raw)
  To: scrawler; +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 (= 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

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

* Re: todo autochange to done
  2015-08-13  4:39 ` Matt Lundin
@ 2015-08-13 13:05   ` scrawler
  2015-08-13 13:14     ` scrawler
  0 siblings, 1 reply; 5+ messages in thread
From: scrawler @ 2015-08-13 13:05 UTC (permalink / raw)
  To: orgmode list

On Wed, Aug 12, 2015 at 11:39:24PM -0500, Matt Lundin wrote:

> Check the quote character before org-after-todo-statistics-hook and
> org-summary-todo: it should be ' not ’.

Ahha! I have the pdf version of the org manual and pasted from it. Thanks!

-- 
signature angry: "grrrrr"
:-)

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

* Re: todo autochange to done
  2015-08-13 13:05   ` scrawler
@ 2015-08-13 13:14     ` scrawler
  2015-08-13 13:20       ` scrawler
  0 siblings, 1 reply; 5+ messages in thread
From: scrawler @ 2015-08-13 13:14 UTC (permalink / raw)
  To: orgmode list

On Thu, Aug 13, 2015 at 08:05:06AM -0500, scrawler@gmail.com wrote:
> On Wed, Aug 12, 2015 at 11:39:24PM -0500, Matt Lundin wrote:
> 
> > Check the quote character before org-after-todo-statistics-hook and
> > org-summary-todo: it should be ' not ’.
> 
> Ahha! I have the pdf version of the org manual and pasted from it. Thanks!
> 

I spoke too soon. the version in my .emacs is ok, the one I posted here (from the pdf) isn't...
-- 
signature drinking: "glugluglug"
:-)

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

* Re: todo autochange to done
  2015-08-13 13:14     ` scrawler
@ 2015-08-13 13:20       ` scrawler
  0 siblings, 0 replies; 5+ messages in thread
From: scrawler @ 2015-08-13 13:20 UTC (permalink / raw)
  To: orgmode list

On Thu, Aug 13, 2015 at 08:14:31AM -0500, scrawler@gmail.com wrote:
> 
> I spoke too soon. the version in my .emacs is ok, the one I posted here (from the pdf) isn't...

Never mind. Sorry for the noise.

-- 
signature mischievous: "heh, heh, heh"
:-)

^ 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.