From: Joseph Buchignani <joseph.buchignani@gmail.com>
To: David Maus <dmaus@ictsoc.de>
Cc: Matt Lundin <mdl@imapmail.org>, Emacs-orgmode@gnu.org
Subject: Re: Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"
Date: Wed, 10 Nov 2010 05:17:16 +0800 [thread overview]
Message-ID: <AANLkTi=cZbGn0PMB73m2af4UQyGQzJiE+X69+3pFEvD1@mail.gmail.com> (raw)
In-Reply-To: <87fwvaw6e6.wl%dmaus@ictsoc.de>
David, I understand what your second function does, but I'm confused
about what the first one does.
Does the first function set all habits to have a "return to state" property?
Or does it cause all habits to revert to the "return to state" defined
keyword, if it is defined?
I was asking how to set "return to state" for all the habits contained
in a single file. Since I have a lot of habits and none of them
currently have a "return to state" property.
Thanks,
JB
On Wed, Nov 10, 2010 at 5:09 AM, David Maus <dmaus@ictsoc.de> wrote:
> Sorry, I couldn't help myself:
>
> (defun hb:set-habit-keyword-2 ()
> "*Reset keyword of done habit."
> (let ((reset-to (org-entry-get nil "REPEAT_TO_STATE")))
> (if (and reset-to (string= state "DONE"))
> (org-todo reset-to))))
> (add-hook 'org-after-todo-state-change-hook 'hb:set-habit-keyword-2)
>
> Every time a todo turns into DONE, this function is run and sets the
> keyword to whatever is stored in REPEAT_TO_STATE.
>
> Best,
> -- David
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... dmaus@ictsoc.de
>
--
Ignore the following. It is a nonsense sentence that disables Google
ads from displaying next to my emails by triggering sensitive
keywords.
I enjoy the massacre of ads. This sentence will slaughter ads without
a messy bloodbath.
next prev parent reply other threads:[~2010-11-09 21:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 13:56 Force completed habits to revert to "HABIT" todo keyword instead of "TODO" Joseph Buchignani
2010-09-06 22:09 ` Łukasz Stelmach
2010-11-09 20:26 ` Matt Lundin
2010-11-09 20:37 ` Joseph Buchignani
2010-11-09 20:58 ` David Maus
2010-11-09 21:09 ` David Maus
2010-11-09 21:17 ` Joseph Buchignani [this message]
2010-11-09 21:27 ` David Maus
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='AANLkTi=cZbGn0PMB73m2af4UQyGQzJiE+X69+3pFEvD1@mail.gmail.com' \
--to=joseph.buchignani@gmail.com \
--cc=Emacs-orgmode@gnu.org \
--cc=dmaus@ictsoc.de \
--cc=mdl@imapmail.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).