From: David Maus <dmaus@ictsoc.de>
To: Joseph Buchignani <joseph.buchignani@gmail.com>
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: Tue, 09 Nov 2010 21:58:25 +0100 [thread overview]
Message-ID: <87mxpiw6xa.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <AANLkTik6RPs1MriW9DQ=TWexhe2Q9vKQH6D819SBockE@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 949 bytes --]
At Wed, 10 Nov 2010 04:37:43 +0800,
Joseph Buchignani wrote:
>
> Hi Matt,
>
> Thanks for your very helpful reply.
>
> I know this is a noob question, so please forgive me for taxing your patience...
>
> How do I evaluate the statement you supplied for just one file? E.g. I
> want to evaluate your statement for notes.org, what do I do?
Örm, well: The original function would not reset the todo state
change, but set the REPEAT_TO_STATE property (i.e.: org-set-property).
To use the (right) org-map-entries function interactively, just define
a interactive function:
(defun hb:set-habit-keyword ()
"*Set keyword of habits in current buffer."
(interactive)
(org-map-entries
'(org-todo (org-entry-get nil "REPEAT_TO_STATE"))
"STYLE=\"HABIT\""))
And call it with M-x hb:set-habit-keyword.
HTH,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-11-09 20:58 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 [this message]
2010-11-09 21:09 ` David Maus
2010-11-09 21:17 ` Joseph Buchignani
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=87mxpiw6xa.wl%dmaus@ictsoc.de \
--to=dmaus@ictsoc.de \
--cc=Emacs-orgmode@gnu.org \
--cc=joseph.buchignani@gmail.com \
--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).