From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO" Date: Tue, 09 Nov 2010 21:58:25 +0100 Message-ID: <87mxpiw6xa.wl%dmaus@ictsoc.de> References: <874obqnszr.fsf@fastmail.fm> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============0297444742==" Return-path: Received: from [140.186.70.92] (port=47223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFvH5-0005Ia-Kc for Emacs-orgmode@gnu.org; Tue, 09 Nov 2010 15:58:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFvGx-0004da-Ut for Emacs-orgmode@gnu.org; Tue, 09 Nov 2010 15:58:38 -0500 Received: from mailout110.xlhost.de ([213.202.242.110]:44272 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFvGx-0004aw-PT for Emacs-orgmode@gnu.org; Tue, 09 Nov 2010 15:58:31 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Joseph Buchignani Cc: Matt Lundin , Emacs-orgmode@gnu.org --===============0297444742== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Nov__9_21:58:24_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Tue_Nov__9_21:58:24_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Wed, 10 Nov 2010 04:37:43 +0800, Joseph Buchignani wrote: >=20 > Hi Matt, >=20 > Thanks for your very helpful reply. >=20 > I know this is a noob question, so please forgive me for taxing your pati= ence... >=20 > 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? =C3=96rm, 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=3D\"HABIT\"")) And call it with M-x hb:set-habit-keyword. HTH, -- David --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Tue_Nov__9_21:58:24_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkzZtfAACgkQma24O1pEeOYRlAD/SH33mFhUYMabFzMT0JVQIFqr wAmiFetbT8ToOVf24jMA/1c15pVNxJy4VfNDZ3+hwjQWypkIw+zsc4zs3sFd5xcO =erHZ -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Nov__9_21:58:24_2010-1-- --===============0297444742== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0297444742==--