From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SBUbBTt55WApsQAAgWs5BA (envelope-from ) for ; Wed, 07 Jul 2021 11:51:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mKK/ADt55WD7bgAAbx9fmQ (envelope-from ) for ; Wed, 07 Jul 2021 09:51:55 +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 261C81CFC2 for ; Wed, 7 Jul 2021 11:51:54 +0200 (CEST) Received: from localhost ([::1]:33624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m14Dg-0002ow-4T for larch@yhetil.org; Wed, 07 Jul 2021 05:51:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m14DE-0002oo-SF for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 05:51:24 -0400 Received: from virgo.ocssolutions.com ([67.43.1.28]:49010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m14DC-0004on-SY for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 05:51:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ristow.info ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2Nvju1k7hK0pXQuGjI6FJj1Py4bswsd6HFjoxKLAe50=; b=cBjXYMJbX+u1/IHF0PVbZyj6l+ O211sIaXTEtscoLd95NVgcqeAYs+eCL4kWC9Y3k9zoXpuorv8tQ7uGpj+3qSjh+pK4OB9cAxxogTV 0NTGELkd4u7jW7SZ5d9oaB84K5n07NEj/xNleQ7V33+XSCjgpmXkadXHL2hgeQg0qwGjERhbfkIeG leBymTfl2aMZHFytrcdBYKa1nxzbKSSo3u/Vi9cohn9DQaOsO+AnQev8Q7leHnNmIuKYkPIShhUPA iNqa2BD6dcFOA+U7HqENE3k39Icxk68/wipB+qtzCT9t/Y/gTb6X07ZPA3SuhjKP8hZ6eCEjncM1O LJuBoBDg==; Received: from [88.162.227.118] (port=51954 helo=[192.168.0.177]) by virgo.ocssolutions.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1m14CU-0006eP-Mq for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 04:50:39 -0500 To: emacs-orgmode@gnu.org From: Alan Ristow Subject: Bug: Unexpected behavior marking recurring tasks as DONE Message-ID: <948ada33-e0bf-5e00-0d03-e7d243d87090@ristow.info> Date: Wed, 7 Jul 2021 11:50:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - virgo.ocssolutions.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - ristow.info X-Get-Message-Sender-Via: virgo.ocssolutions.com: authenticated_id: alan@ristow.info X-Authenticated-Sender: virgo.ocssolutions.com: alan@ristow.info X-Source: X-Source-Args: X-Source-Dir: Received-SPF: pass client-ip=67.43.1.28; envelope-from=alan@ristow.info; helo=virgo.ocssolutions.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625651514; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2Nvju1k7hK0pXQuGjI6FJj1Py4bswsd6HFjoxKLAe50=; b=hR3BilsBmibnR68fwQS5ftZSicMbkMkTlc/sByTcWKT4TJjWZ37Pa7IjTPnLkMOv0uKteD NhH2KBDwhhQYYZlkPQ1yTqWsE5uh9WIEE8PwRvWRaxwshTnt2OTrfXbqlcfYb+6JSy8N9V Lcil+kMlgedZGboEcSATgppnTJNxELjFw+swuZuAWckA4xtzzHXX6zx75UaGQz8mZyDB5c KIrYoIfS+gupYGFnTdyrNWtTJuvG+DAqiHgYQ0TOiQw/xmDcYhcLelLt8hbgvOz7rJjBa/ TmPOUn/dzu/CSnPcG49kF1U8LcPSRI1pkxsFeQb5HspoG6tSajG4Yl8ux4EWAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625651514; a=rsa-sha256; cv=none; b=Jsj+NlBMglHLzIBVc6fAmcd2q7YVNp1Q+2UBKFILgG0Xklzp/g4GMOy6K7sFp7Cvhkk1Ys 59Ozb3FpCcYVEMH14Wua3h4IezNxWFLO94LYTOMASDINc3lD6C23wPI8B0U/rGxbwGW8Qa J5IL8FE/thO9TiqnU8jUofvSW8kbcJmAnH2fDRjyyaqw11Yd0UbTbBqjmTIznCwbnne0Xq uUnr3MdHPqV/2CT0510/gNi+0JqYtFowVIovQbH7Cdw2rljcXXz76FcAyg0TwHd9KpNKse glr6zlK34C9e1I5hP8QQcDCn4NS/HEdPDZRlChy8mcTqR9MXJsOj91G0EcjdwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ristow.info header.s=default header.b=cBjXYMJb; 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-Migadu-Spam-Score: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ristow.info header.s=default header.b=cBjXYMJb; dmarc=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-Migadu-Queue-Id: 261C81CFC2 X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: qwHzCYDZvl1f I recently updated org from 9.3 (release_9.3) to 9.4.6 (9.4.6-gfdb98a) and observed several changes in behavior when marking recurring tasks as DONE. I have not found reports of anything similar via Google or the mailing list archives, so rather than a bug it might be a package conflict or a configuration issue; in any case, I am having a really tough time figuring it out and I hope somebody here might be able to give me some pointers. I use straight.el for package management and as part of this update I had to switch from using org-plus-contrib to using org-contrib. Normally, straight.el would make it easy for me to go back to my old configuration -- I have the lockfile with all the package versions -- but because of the movement in org repos and the change from org-plus-contrib to org-contrib, I am running into difficulty doing that, which probably contributes to my difficulties in troubleshooting. EXPECTED (FORMER) BEHAVIOR Suppose I have a task that looks like this: ** TODO Daily review    SCHEDULED: <2021-07-07 Wed .+1d>    :PROPERTIES:    :LAST_REPEAT: [2021-07-06 Tue 10:03]    :END:    :LOGBOOK:    - State "DONE"       from "TODO" [2021-07-06 Tue 10:03]    :END: I then do the following: 1. Move the cursor to the TODO line and mark it DONE (t-x in agenda    view, C-t x in the file buffer). 2. The scheduled date is updated to the next recurrence, and the    current time is recorded in the LAST_MODIFIED property drawer and in    the LOGBOOK. After, the task looks like this: ** TODO Daily review    SCHEDULED: <2021-07-08 Thu .+1d>    :PROPERTIES:    :LAST_REPEAT: [2021-07-07 Wed 11:18]    :END:    :LOGBOOK:    - State "DONE"       from "TODO" [2021-07-07 Wed 11:18]    - State "DONE"       from "TODO" [2021-07-06 Tue 10:03]    :END: I get the same result when the task is marked as a habit and also when I bulk-process tasks from the agenda view using org-agenda-bulk-action. ACTUAL (CURRENT) BEHAVIOR I have observed two changes in behavior since updating to org 9.4.6 and org-contrib. First, if I do exactly the same as above, the time of completion is logged twice: ** TODO Daily review    SCHEDULED: <2021-07-08 Thu .+1d>    :PROPERTIES:    :LAST_REPEAT: [2021-07-07 Wed 11:18]    :END:    :LOGBOOK:    - State "DONE"       from "TODO" [2021-07-07 Wed 11:18]    - State "DONE"       from "TODO" [2021-07-07 Wed 11:18]    - State "DONE"       from "TODO" [2021-07-06 Tue 10:03]    :END: Second, if I bulk-process a habit via org-agenda-bulk-action, the task is simply marked DONE. Bot the recurrence and the LAST_REPEAT field are ignored, but the time stamp is only entered into the LOGBOOK once: ** DONE Walk    CLOSED: [2021-07-07 Wed 11:26] SCHEDULED: <2021-07-07 Wed .+1d>    :PROPERTIES:    :STYLE:  habit    :LAST_REPEAT: [2021-07-06 Tue 15:33]    :END:    :LOGBOOK:    - State "DONE"       from "TODO" [2021-07-07 Wed 11:26]    - State "DONE"       from "TODO" [2021-07-06 Tue 15:33]    :END: MY CONFIGURATION The extensions to org that I load are: org-super-agenda, org-superstar, org-capture, org-tempo, org-checklist, org-habit, helm-org-rifle, org-drill, ox-pandoc, org-make-toc, org-ql, org-roam, org-journal, org-ref, org-ref-helm-bibtex, and org-roam-bibtex. All are the latest versions accessible to straight.el. My init.el includes the following:   (setq org-log-done 'time         org-log-redeadline 'time         org-log-reschedule 'time         org-log-into-drawer t org-log-state-notes-insert-after-drawers nil)   (setq org-todo-keywords         '((sequence "TODO(t)" "NEXT(n)" "STARTED(s)" "WAITING(w@/!)" "|" "DONE(x!)" "DELEGATED(d@)")           (sequence "DEFERRED(f@/!)" "INACTIVE(i@/!)" "|" "CANCELED(c@)"))) Best regards, Alan