From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +C1bEHKzxmKbDQAAbAwnHQ (envelope-from ) for ; Thu, 07 Jul 2022 12:20:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yL5ZEHKzxmK3dgEA9RJhRA (envelope-from ) for ; Thu, 07 Jul 2022 12:20:34 +0200 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 D51A737257 for ; Thu, 7 Jul 2022 12:20:33 +0200 (CEST) Received: from localhost ([::1]:42606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9Oca-0004lx-PN for larch@yhetil.org; Thu, 07 Jul 2022 06:20:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9ObB-0004k3-LV for emacs-orgmode@gnu.org; Thu, 07 Jul 2022 06:19:06 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:36617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9ObA-0005PI-6C for emacs-orgmode@gnu.org; Thu, 07 Jul 2022 06:19:05 -0400 Received: by mail-pf1-x432.google.com with SMTP id g126so4013146pfb.3 for ; Thu, 07 Jul 2022 03:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=dNsja4yG7pWlTgYwJmLe0Avj3xzPk8NzwRp8+k9mH2s=; b=c/Dwb870uJUrLBtiRNJdvKKpV5eYC6scnSxePjlW7W3Iqzh34q991BPi2V31BEwTaY Z6kGIsKtzCsTkbYdMIoOeOs4ZPL5RXhAMHpe5QMC2NgFg5s13+RlBCdbXJd5BYQRdP/A hFaaG4/PcnVmPQl24pEhpclIBKtm/mki1mBQ4KSAbPXQwpJ2PF5SUTHKf096VcuNJ3CC 340yxuzhuiqY3+pSUyxEjLUf2DLldt1m/5SX+B6JMNoOMZBqsf35TQiG8Yh3H2QIlTnm /umUscoQJ4DDBOUlukqfXsRng8sUjCysr1VtWRzh2dh0yv4HLrbUVT9ygptUWbxE8rc5 iqzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=dNsja4yG7pWlTgYwJmLe0Avj3xzPk8NzwRp8+k9mH2s=; b=vuAPRp3dIG5Ec9scy3igYyS4qN7UcWctXpUR2sgSF6AfxTk7FCHhZGNYHDGJMvOmks dkUi9Es/27t/xTj7vKpBkUS+K3Hchm2UG0xpXbLxLdh7/ppvu5zzjS1u0M+CgEjgDLrI j4OTDKN93Xy9kx4FigMoePamqwKR+DnI4D/N2SoswdAsCYsBSCx/NSA75R7UO97puL0t DJ5w70ngqCb4yW0oXcxNLhLGHCctLCPIFXKp8Ed2PMfNU2IoGovXhWjfhug66fTfGH04 pbjUY7Unj3tlz/59mNBTzRLJcVE3DNgNwuy7BxcI2JOUa8nfX0jxscrARfSSj7sNBeJi UIrg== X-Gm-Message-State: AJIora/nptPo7dTvrucqNbswCeaShSR1HZGC10TPspqhVE6f7UotVlcl 2JwuAuk7uROSMMCljp7ETI/prsGHdpxtGQ== X-Google-Smtp-Source: AGRyM1sO36iQaN5S2DNRipOVhqmtZTBnXgVsHpfe6AISMdvp5zMJ65DDPjAB/fD9Paf7Ko0wFtuN7w== X-Received: by 2002:a62:e919:0:b0:51e:7b6e:5a3b with SMTP id j25-20020a62e919000000b0051e7b6e5a3bmr51608262pfh.78.1657189141945; Thu, 07 Jul 2022 03:19:01 -0700 (PDT) Received: from localhost ([209.95.60.151]) by smtp.gmail.com with ESMTPSA id q18-20020a170902dad200b0016bfcf8a463sm4011225plx.289.2022.07.07.03.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 03:19:01 -0700 (PDT) From: Ihor Radchenko To: Jonathan Reeve Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] running org-agenda-todo-yesterday on a habit erroneously sets :LAST_REPEAT: as today, instead of yesterday [9.6 (9.6-??-e9da29b6f @ /home/jon/.emacs.d/.local/straight/build-28.1/org/)] In-Reply-To: <87sfnk7l0h.fsf@jonreeve.com> References: <87sfnk7l0h.fsf@jonreeve.com> Date: Thu, 07 Jul 2022 18:20:07 +0800 Message-ID: <87zghlusvc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=yantar92@gmail.com; helo=mail-pf1-x432.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657189233; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dNsja4yG7pWlTgYwJmLe0Avj3xzPk8NzwRp8+k9mH2s=; b=Og2IRKjnqimHecU6qQhZ18bybiob91SPMIiQx4vgtd961lTvg2K7vcjP4FVaTfIj633EUs ha4/Z8j6rgl7nXsamnvpXtFXrWciv6qaR0SmBsWo4wyBgZmco1QLa38UWDzrxKaXCeTsjP nHWuhMTWuw2EBjj8yk8L+W/uNWXDKlw5HgD3cs5Tw+JMAcmX6gBuklWRaWBHtCFC78PibO YO1lrAYo4h4137hI1IDwMP8mDScBe4FRuwCs6hWZ1dvr1E8F6ctGbZexWwMYSs9qTk892w rC+JKB8dWqymUHu90eJEE8kLvmjRQnFIYL9LW2LE2rASzm4N01TqRMSamGAWeg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657189233; a=rsa-sha256; cv=none; b=QAPKzn2C5QHC/w3zgf0HpZd6U45mmiqYltc5clQ9P976foOCc+6i7PMimwNM8jCORFks7x gPniQRGhPM2zl+kaAC1vmORpe5FLp2rvSE4Eltsov7oNQkPbumlE4+y6ExrlDzBWjsbZL1 IbHVHOjwGoiKkYhJO/ODw2tIBBev7hxIs4soHAlkg6mYZruAbiARAOIg5zVjpXoTY623se sK97pQzeJR4whgQv/g9mYS4+Z7qUMw57RqmCRf9eFl9yxxzStWiScKphGmg2teu3mmWIYS wfpDFTBALgTKv0PXPOEOqQb7n4JV86i7tkzIbVnO4gFZ0tP/Aci/OtCQkPY1XA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="c/Dwb870"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="c/Dwb870"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D51A737257 X-Spam-Score: -8.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: xd7v8K1j+yhR Jonathan Reeve writes: > I will often use org-agenda-todo-yesterday to log habits that I did yeste= rday. It works fine for changing the todo state and logging it as yesterday= =E2=80=99s, but the :LAST_REPEAT: property it has, since it=E2=80=99s a hab= it, is set to today, rather than yesterday. > > This means that, for example, I can have a habit that=E2=80=99s set to re= peat every day, and run org-agenda-todo-yesterday in Agenda view, which wil= l change the state of a habit to =E2=80=9CDONE=E2=80=9D for yesterday, but = when I reload the buffer, the item disappears, because it thinks it=E2=80= =99s already been done for that day. But I want to log it as done for yeste= rday, and then log it again as done for today. Thanks! Fixed on main via 0495961f3. Best, Ihor