From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MGVQAXPxSl88NAAA0tVLHw (envelope-from ) for ; Sun, 30 Aug 2020 00:23:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6HO7OHLxSl+xQQAAbx9fmQ (envelope-from ) for ; Sun, 30 Aug 2020 00:23:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7966A9404D2 for ; Sun, 30 Aug 2020 00:23:13 +0000 (UTC) Received: from localhost ([::1]:37670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCB7m-0000iX-9O for larch@yhetil.org; Sat, 29 Aug 2020 20:23:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCB7S-0000iQ-VW for emacs-orgmode@gnu.org; Sat, 29 Aug 2020 20:22:50 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:55544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCB7O-00076W-PD for emacs-orgmode@gnu.org; Sat, 29 Aug 2020 20:22:50 -0400 Received: by mail-wm1-f51.google.com with SMTP id a65so2298892wme.5 for ; Sat, 29 Aug 2020 17:22:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hq2OZ/+ADA9taJljD1h1IXGEnq4FKg5QvwdNkz6kL30=; b=lHtnPEz+zeuOtveT6cgdzNXSRuQe8VwotTRM4T+1yfOuk1TRMRN5s/E+BSjHJHIxID zuwN4uMFaEQ0219WqXXiaY57gE3oYJk46udt2lDWcErFSk4q7fRiudNfM2dJCF2r3QwV zSTBno2GiWLNHNmtbIQ9bKjyk3ruuHJIrDjxD3YRLnGfepLlWgzFRWbQaSSp5G/cebUy HYkvL+08lEXkNDeHMp6x6z2K8rrh5knJ9Pw0cN6a2DX2/4J1pWfRMPYWqyaizGpnREwz WV5rPLf7Iv4UMGDt98MeFTq2cRQMBvRHuGSi4pzY/yF9hdb8d2ecXHI5OdL07bMur6q9 jWLw== X-Gm-Message-State: AOAM532AmNFCXuNmdva2A22PMYffK9eEVv2bmFvbg7jc9vjUhswHpuAu V1eh/zyQWfeMlbMT8btEUFuFBAzXT6qFrzwOcB8= X-Google-Smtp-Source: ABdhPJzr/OGIE/lEV0SNyvVKIEBkBi2bW8Vyo/CR1jUM3dTsca2Txc652RTun2LlRctbiEDQTdNE5z/SXmN2Jphs/po= X-Received: by 2002:a1c:6407:: with SMTP id y7mr5253220wmb.180.1598746964696; Sat, 29 Aug 2020 17:22:44 -0700 (PDT) MIME-Version: 1.0 References: <878sftit5a.fsf@gmail.com> In-Reply-To: <878sftit5a.fsf@gmail.com> From: Adam Spiers Date: Sun, 30 Aug 2020 01:22:33 +0100 Message-ID: Subject: Re: time-warping - retroactively marking DONE? To: No Wayman Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.128.51; envelope-from=adam.spiers@gmail.com; helo=mail-wm1-f51.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/29 20:22:45 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=adamspiers.org (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: 8WhFXl6ulfMo On Wed, 8 Jul 2020 at 23:09, No Wayman wrote: > I emailed Adam directly with an experimental package I wrote to > solve the problem of changing the todo-state of an entry at an > arbitrary time. > He suggested I posted here as well: > > https://github.com/progfolio/epoch/ > > The package advises current-time to return `epoch-current-time' if > is set (falling back to the usual current-time if not). > A macro, `epoch-with-time' is provided which allows a body to be > executed with current-time set to an arbitrary time. > Two commands (which I may separate into their own package), > `epoch-todo' and `epoch-agenda-todo' call their respective > org-mode commands. > `org-read-date' is called with the tasks's SCHEDULED or DEADLINE > time pre-populated so one can easily edit relative to that time. > > Still very much a work in progress, but the two commands are > useful for me so far. > > Any ideas, suggestions, criticisms are appreciated. Many thanks again for this. It's working great for me! In case anyone's interested, here's my use-package config (which uses the awesome straight.el package manager to install it): https://github.com/aspiers/emacs/blob/aa62bd84b51a02cb0fc980862a63514349d253bf/.emacs.d/init.d/as-org-mode.el#L111-L116 I agree with your observation that it might be nicer to separate out the org-specific stuff into a separate package, because the epoch stuff seems useful in its own right outside org-mode.