From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: moving past state changes into logbook drawer? Date: Sat, 24 Jul 2010 08:57:18 +0200 Message-ID: <87d3udwenl.wl%dmaus@ictsoc.de> References: <82F748D8-A0A5-4207-9FC6-59DDC9B7460F@gilbert.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1551470634==" Return-path: Received: from [140.186.70.92] (port=55076 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcYfz-0005rc-Gp for emacs-orgmode@gnu.org; Sat, 24 Jul 2010 02:57:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcYfw-0003bM-VD for emacs-orgmode@gnu.org; Sat, 24 Jul 2010 02:57:39 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:55102) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcYfw-0003b9-Pf for emacs-orgmode@gnu.org; Sat, 24 Jul 2010 02:57:36 -0400 In-Reply-To: <82F748D8-A0A5-4207-9FC6-59DDC9B7460F@gilbert.org> 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: Michael Gilbert Cc: emacs-orgmode Mailinglist --===============1551470634== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sat_Jul_24_08:57:17_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Sat_Jul_24_08:57:17_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Michael Gilbert wrote: >Hi =E2=80=94 >I am just now transitioning to logging state changes into a logbook >drawer. But I have legacy agenda files with hundreds of lines that >were not put into that drawer. Does anyone know of a convenient way >to move all the past state changes into the suitable drawer? If that >in the manual, I'm afraid I missed it. Moving these non-logbook state changes into the LOGBOOK drawer is not covered in the manual. Just gave this problem a thought and will see if I can provide a function that does the job. Although there are limitations. Finding state changes without a note is doable. ,---- | ^[ \t]*- State .+ `---- If they have a note they end with "\\" and we know for certain that everything up to a blank line ("\n\n") belongs to the state change. But we cannot say if things below this blank line belong to the note or not. ,---- | - State "WAIT" from "TODO" [2010-06-27 So 08:41] \\ | Here is some text. |=20 | And the note goes on! `---- HTH, -- David --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sat_Jul_24_08:57:17_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkxKjs0ACgkQma24O1pEeObktgEAvWHwJpxhcwVCyIdJfPaCw+uo HrVe8larEW/8Obnixk4BAMVqOD3xhVCzN3Ta2/i+5TsIRBnyFAL9fe2Nw+OY4YZQ =Mrch -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sat_Jul_24_08:57:17_2010-1-- --===============1551470634== 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 --===============1551470634==--