From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: org-log-reschedule: inactive time-stamp instead Date: Thu, 25 Jun 2015 12:03:22 +0200 Message-ID: <87wpys85qt.fsf@gmail.com> References: <2014-12-16T18-21-20@devnull.Karl-Voit.at> <877fxr5kot.fsf@nicolasgoaziou.fr> <2014-12-17T10-01-43@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z840I-00065F-1Y for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 06:03:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z840E-0003Xy-PG for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 06:03:29 -0400 Received: from smtptls2-lmb.cpub.univ-nantes.fr ([193.52.103.111]:36369 helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z840E-0003XH-K7 for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 06:03:26 -0400 In-Reply-To: (M.'s message of "Thu, 25 Jun 2015 09:50:03 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: M Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable M writes: >> Karl Voit Karl-Voit.at> writes: >> >> Those active time-stamps clutter my daily agenda a bit. Therefore: >> >> >> >> ,----[ what I would like to get ] >> >> | :LOGBOOK: >> >> | - Rescheduled from "[2014-12-17 Mi]" on [2014-12-16 Di 17:01] >> >> | :END: >> >> `---- >> >> >> >> So can someone please add an option for this variable to get >> >> inactive time-stamps? >>=20 > > Hi Karl, > did you find a solution in the meantime? I'm having the same problem and = the > active timestamps are also bothering me as rescheduled tasks which > originally were scheduled for today stay in my daily agenda and clutter i= t. > > I wonder if I get something wrong, but in the variable org-log-note-headi= ngs > I see > > Heading when rescheduling > String: Rescheduled from %S on %t > Shouldn't the %S represent a TODO state (which makes no sense)? > Can I replace it by an inactive timestamp? Hi, I had the same problem and implemented a quick'n dirty solution : (defun dmd-org-active-timestamp-to-inactive-when-rescheduled () "Convert some variable with active timestamp to inactive one." (when (eq org-log-note-purpose 'reschedule) (setq org-log-note-previous-state (substitute ?\] ?\> (substitute ?\[ ?\< org-log-note-previous-sta= te :test #'char-equal) :test #'char-equal)))) (add-hook 'org-log-buffer-setup-hook 'dmd-org-active-timestamp-to-inactive-= when-rescheduled) It works for me but it should probably be fixed in org-mode itself. Best, =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVi9HrAAoJEBNzVHcrZRiUM5EP/jy6DAT31YmIZWYtR1yzBqlJ kg+jNex6WyFjx+kaN0zq23ZJond/7cG66fIFUmiGzhlxp4JTRjNalQIoZMmqlFjM znbouvR8FUSGWus1SdV2QtcEg8oQ1GY7705YEo0xrJ1+OhsVxsV2faijBcJzsJPn WaAD7qYJTUdAZeRvhU4Ux2iFS11v6MEjFq/5PGOPSEH6yBPQejsKuegXQCWoy6za d52g0+ItjTMxrzLo8i+8VECQDWR3wjFEQ5aQ830GgV5Os7QX6lSLZbPT0J70YtZx dtovgGT2XCFAr+9xydW09dFT7e+iFv2XSwiuiWPIQ/fzoEYXSEGTGEuS0WwGVpa/ Vp+Pk5VcdV5jkxYejEIkg6CNdMgWoW2r+fbuaS9yE5D8vfVisy4cLpXYKiT6cAit 8QZ+EEpr4/X70voleVmVeeDZbPt3FpfgVrDizNhWh6o93FLMF78JrCs060FW3Ufh 397GJ05AWEgI/CsS/csCUEa0lDb3fplVqwz71pvbI83Qq6JQwzWj6CLbExr7hHdO Q1884WkljPE4STTIN9kZmWAuWLaUxpu2rYXh0dZ/JbbpoKhIv5QGxfmzG0Wi6mKp U+qcTSAqj4wjj5b4lN+jOPGG/GOXKuRJ/tORb5U15fyNB/A2z8Hym6VOQ/B+rdcu GxuBxjOjpL2zTqqlD0fU =bgth -----END PGP SIGNATURE----- --=-=-=--