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 ms0.migadu.com with LMTPS id cJqlDsfw5WANEgAAgWs5BA (envelope-from ) for ; Wed, 07 Jul 2021 20:21:59 +0200 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 iDE8Csfw5WBvTAAAbx9fmQ (envelope-from ) for ; Wed, 07 Jul 2021 18:21:59 +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 206471B539 for ; Wed, 7 Jul 2021 20:21:58 +0200 (CEST) Received: from localhost ([::1]:58560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1CBH-0007U0-Jj for larch@yhetil.org; Wed, 07 Jul 2021 14:21:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1C9X-00054o-Vm for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 14:20:08 -0400 Received: from virgo.ocssolutions.com ([67.43.1.28]:56754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1C9V-0005HE-VW for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 14:20:07 -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:In-Reply-To: MIME-Version:Date:Message-ID:References:To:Subject:From:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8sATTw7NtJ3ySCfoHkj6ESTj5Il6jRIoEL9Zc6nZflU=; b=XAx6Eo8mPfGVm0147EpRqA7aeP aPUBGhv1+sty4upA5TN9O2KJRXrRUR4Fz3sIkGv9BxeTfmwKnK4drdS8m+Njtp0f+wZYb+gBz91Nf 44R+EGfgZfEG70T6n8EyycPCF8GRJC3qAo82gDJak0rM7zQprbx4udn4/U9s5vkCUgy0NIfZFObAK id7AsRWqNq+c1EOAL3V0OOX2QG2THWrPCEYaiGPhQ1NkbmHQWEn6GP6iA1HEwfkUvxGQ4rV2GDNTn vgTYyH9872c0pmibACP5dInQH6j38npxOQoNmRwkrUPfuT+LLD36g4OkaZnveFZNgUT9gWvAusy1q vlCbNA0A==; Received: from [88.162.227.118] (port=56406 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 1m1C9S-000NI2-F8 for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 13:20:02 -0500 From: Alan Ristow Subject: Re: Bug: Unexpected behavior marking recurring tasks as DONE To: emacs-orgmode@gnu.org References: <948ada33-e0bf-5e00-0d03-e7d243d87090@ristow.info> Message-ID: Date: Wed, 7 Jul 2021 20:20:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <948ada33-e0bf-5e00-0d03-e7d243d87090@ristow.info> 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, NICE_REPLY_A=-0.001, 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=1625682118; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=8sATTw7NtJ3ySCfoHkj6ESTj5Il6jRIoEL9Zc6nZflU=; b=VofhCzOsqEslnwquvqexn35mhpudGaW4VNnGqj7EVBnkKZjWEjUnNDYofcD5aRSkNw32dg j7CewMgFbJcWFKOgL+rOC16ndtroymZp7NrRe8cHTcTJUh8E6Y7pJKP4nmuok5HdR8jZk0 RYDx/CMjQN53MhuaSQLSueFPqJ59o6OxgmebpErTxo6SUakLcR4+QNNbjodDbN3PzkVCNr erMNhE5HT2hmkfri9C/weSrTdCO15wUeV9Q7KNBoYTWevNkzZ/wt9NoTrhs/+Ff3Q00ABr dQLf07BfY7PMGt7n9OyYbLAE1O074Zrb3rS3BN2WIlo2ZJ8oHJHUvfLAysKQQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625682118; a=rsa-sha256; cv=none; b=SofIwQiG+XcIKOPIGb40OKaKXQPxeTyf/cwOTSkxru1ngd203dNiN5BvDr6stFXNzoQH5S nYEF7eVzudXMof6cLjkj2zmzoy8IUFEFstn2OuBvNGX5dGIYKPikhi9tnZrmLNQc1sDJ4/ cHUQPZzwV9I58yy37+oK0Kqye/k7l6UFOuWe/ifPOw9V3dOI2RMBilHV+uc1naHZjvNltd x7Ks4muIrbkOYHAEf2wOHLAGPhgrXCVRJxN9Ajv96DoMCTqvx4RATMkSxkTGHjjpG+t1I/ 5KXv0hLuclLFJxmUwaq2ESpTHfvA++XKu2Fz5sZhLGrSamSHSZFHL6zBQ2YlKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ristow.info header.s=default header.b=XAx6Eo8m; 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=XAx6Eo8m; 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: 206471B539 X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5NvEYTqvlqne I think I have solved this, though I am not really sure why the solution works. As noted previously, my org-todo-keywords are defined as follows:   (setq org-todo-keywords         '((sequence "TODO(t)" "NEXT(n)" "STARTED(s)" "WAITING(w@/!)" "|" "DONE(x!)" "DELEGATED(d@)")           (sequence "DEFERRED(f@/!)" "INACTIVE(i@/!)" "|" "CANCELED(c@)"))) By trial-and-error with a minimal init.el file, I discovered that removing the exclamation point from the DONE fast access key solved the problem, at least in the testing I have done so far (with both the minimal init.el and my full configuration). That is to say, the new setting is as follows:   (setq org-todo-keywords         '((sequence "TODO(t)" "NEXT(n)" "STARTED(s)" "WAITING(w@/!)" "|" "DONE(x)" "DELEGATED(d@)")           (sequence "DEFERRED(f@/!)" "INACTIVE(i@/!)" "|" "CANCELED(c@)"))) I have not touched this variable in many years, and as far as I can tell the documentation on the use of "!" is the same as it has been since the day I started using org. Even without the "!", the time I completed the task still gets logged in the LOGBOOK, but now only once instead of being duplicated. I also have this in my init.el:   (setq org-log-done 'time) Could this be conflicting with "DONE(x!)" in org-todo-keywords? Best regards, Alan On 7/7/21 11:50 AM, Alan Ristow wrote: > 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 > >