From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iJYaOlX/52AB/gAAgWs5BA (envelope-from ) for ; Fri, 09 Jul 2021 09:48:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KATQNVX/52C7XgAAB5/wlQ (envelope-from ) for ; Fri, 09 Jul 2021 07:48:37 +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 EE3391DC51 for ; Fri, 9 Jul 2021 09:48:36 +0200 (CEST) Received: from localhost ([::1]:52240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1lFT-0003wh-2u for larch@yhetil.org; Fri, 09 Jul 2021 03:48:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1lF6-0003wW-CB for emacs-orgmode@gnu.org; Fri, 09 Jul 2021 03:48:12 -0400 Received: from virgo.ocssolutions.com ([67.43.1.28]:38372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1lF4-0006Rg-Bl for emacs-orgmode@gnu.org; Fri, 09 Jul 2021 03:48:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ristow.info ; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Sender:Reply-To:Content-Transfer-Encoding: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=Qm1aUt3NGQxbyMjxbfSLAcoZTAtghDyeefh60E8xTnQ=; b=ar3Zqt4S4sHX3fqotJmbrs2bUV A3Ceedf52LZ3ztt/aGb8iJAu0zMKqX4yhc3Tehc6u2ei30D4a1/H+RxI4CJQi+5G1JSOTfSqriB3s dz4HQT/lWg6z6yy2IvbfGBirQXdbzBwbAUA73V6zGHJWJ8NsL+nZHvSSqhpw1t5J/3FKqVqZ5YRxG 54VdTd8OVVKXDn3vJFQt2cwze4bgINur2rbIKjGy1qO2rzMgmeL2hdmZaP5ZO+6oazLs8OTryCljU CswRlDmhoX5WtThL01Y+OX3FGFpFARUCNAjEZfhaoaPEL9zu37692ZBo7p/t3ymBkEwW2I8y2PdiQ PUmWX2Lg==; Received: from [88.162.227.118] (port=59472 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 1m1lEN-0007wh-Cq; Fri, 09 Jul 2021 02:47:27 -0500 Subject: Re: Bug: Unexpected behavior marking recurring tasks as DONE To: Bhavin Gandhi References: <948ada33-e0bf-5e00-0d03-e7d243d87090@ristow.info> From: Alan Ristow Message-ID: Date: Fri, 9 Jul 2021 09:47:24 +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: Content-Type: multipart/mixed; boundary="------------DFAFD6CCC14088A0AFABBEEB" 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: , Cc: emacs-orgmode@gnu.org 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=1625816917; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Qm1aUt3NGQxbyMjxbfSLAcoZTAtghDyeefh60E8xTnQ=; b=YYmyTN26xu1jEtbsdjAfeVyJ7d1Xkx7nQfW3sQy9rB0x472rJCCVpL0rD0Tt/uldNORDz+ L7XLiReH8Tf///XbL6WBGmDuoidToCjqThm2p+aa1I6OzjiDemETGID06DL2w8aiqfXL+F LCCZmCxrtYMEy28cgKeaE9Ywgeck8ho+9sIDDwaNq+ZmgQ86KbyZY+bi6AGz6Nrar+trXU GWhT2/Z5fFj0egnNzGePvDSr4hcO1ZmJTOE5vPrrSHJrCUffIORmk79K1XCKYiDKon9eyx 2xwISOAJ0+obbZLHRWva6lJTMgEzFlLbSRnMXtuh9VG8dXxdBThsf7b+6dDnTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625816917; a=rsa-sha256; cv=none; b=GoECvH5DxHq4JqqodA6hEi5pa2hpWzeANPAat9ouiOi4gDnlhVYbYYQrfagO++rjHS/iTK WDkTAqWsUTDDVuBE8gjlZ2A6suqQLVkL+/Z9H0x0CYsrnz7CH3F5sbTKoHO9MNnvEaz+B+ AZkKalAfWo6jGgVfRGWpGGy64KJCcysHPt+j5NgqEgWvbxb+cNAQWTNty7c+G1ugiOu9qH UweDCRk/fAx49QoJx/Gm0pPTNFHkhOEjrCPHsr4e8xP3gHwh8JQDNVBkkhmMbpXwvbZmXt ulc8dj7ajHiDHTFRdqIPP7cydydKxKqG9+UI6YitkkZ7FGCQU/jGy1zcUntapQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ristow.info header.s=default header.b=ar3Zqt4S; 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.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ristow.info header.s=default header.b=ar3Zqt4S; 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: EE3391DC51 X-Spam-Score: -1.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: i+ixCqPPLhVd This is a multi-part message in MIME format. --------------DFAFD6CCC14088A0AFABBEEB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Bhavin, On 7/8/21 8:19 PM, Bhavin Gandhi wrote: > Hello Alan, > > Thank you for sharing a detailed description. > [...] > I think this is same issue as reported in this bug report: > https://orgmode.org/list/87o8c8xp9b.fsf@gmail.com/ Thank you for the pointer to this -- clearly I missed it in my initial search of the mailing list archive, but I agree it appears to be the same issue. I'm glad to know that somebody has reproduced it. >>> 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: > I was not able to reproduce this correctly, I will try to reproduce it > again later. I had a difficult time reproducing this one reliably. If I remember correctly, I could only reproduce it when I set a key binding to org-store-link. It is a binding I never use, I only set it because it was in seemingly every org config on the planet when I first started with orgmode, and I certainly don't explicitly invoke it when processing in bulk. Looking back at my last emails, I realize I have submitted a pretty lousy bug report -- sorry for that! The init.el I used for debugging is attached, though it relies on straight and use-package for reasons of time and convenience. The org settings as-written have reproduced both behaviors reliably for me so far, and removing the "!" from org-todo-keywords has fixed them both. I am a bit pressed for time at the moment, but later today or over the weekend I will put together a more vanilla init.el that hopefully reproduces both problems (or reveals a package conflict...). I have also attached my test file, though it is not substantively different from the one you used yourself in the previous thread. Best regards, Alan --------------DFAFD6CCC14088A0AFABBEEB Content-Type: text/x-emacs-lisp; charset=UTF-8; name="init.el" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="init.el" ;;; -*- lexical-binding: t -*- (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) (bootstrap-version 5)) (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) (straight-use-package 'use-package) (setq straight-use-package-by-default t) (eval-when-compile (require 'use-package)) (require 'bind-key) (setq use-package-always-defer t) (setq use-package-verbose nil) (use-package org :defer nil :bind (("C-c l" . org-store-link) ("C-c a" . org-agenda)) :mode ("\\.\\(org\\|org_archive\\)$" . org-mode) :init (setq org-directory "~/org-dev" org-agenda-files (list org-directory)) :custom (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) (org-todo-keywords '((sequence "TODO(t)" "|" "DONE(x!)")))) --------------DFAFD6CCC14088A0AFABBEEB Content-Type: application/vnd.lotus-organizer; name="test.org" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.org" KiBUT0RPIFJlcGVhdCBhIHRhc2sKU0NIRURVTEVEOiA8MjAyMS0wNy0wNyBXZWQgLisxZD4K --------------DFAFD6CCC14088A0AFABBEEB--