From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id audjO9yZx2CfpAAAgWs5BA (envelope-from ) for ; Mon, 14 Jun 2021 20:03:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oF/8NdyZx2DWHwAA1q6Kng (envelope-from ) for ; Mon, 14 Jun 2021 18:03:08 +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 47753115A4 for ; Mon, 14 Jun 2021 20:03:08 +0200 (CEST) Received: from localhost ([::1]:33008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsqvR-0001Rg-UV for larch@yhetil.org; Mon, 14 Jun 2021 14:03:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsquv-0001RX-Cs for emacs-orgmode@gnu.org; Mon, 14 Jun 2021 14:02:34 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:43961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsqus-0007Af-Qk for emacs-orgmode@gnu.org; Mon, 14 Jun 2021 14:02:33 -0400 Received: by mail-lf1-x134.google.com with SMTP id x24so16899101lfr.10 for ; Mon, 14 Jun 2021 11:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DXAtkNivW02XF+gtRcYfpM7/aOzqZrsQBjeVGEHd6sc=; b=T0lim/L52JE9WSKHXdumlXyonBaOFN7KNs4FBLgqP5KO4rpibn/JudKb/WUUmRqvst nGuOhu0lMEHKd7isMuijcnK9sBG6crFGWN3YZGAMkVr21Su7WobDVeppSYKZIoUmGyr0 KH7B+jl0DcnfHvvIFbq7ZHbyJCJWEIrnKUvkJIIfH1Ge5Ozt70WEurSbM8KaHtgiB7Q7 VeTbO+47dnZDiafRN1GZTSjb1F2+NDklefGwAmcw+u/nVEcI8zZnaVFdOkAp3Tkx3DPL c38rA7jOZA77ZwajaNxQHMu28OLtu4EB8AUcqnF9EogfargMsis6pvpBzAdo7lqfR8Xy ACgw== 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:content-transfer-encoding; bh=DXAtkNivW02XF+gtRcYfpM7/aOzqZrsQBjeVGEHd6sc=; b=WFIxIkVptfWS82yq7GhWh1ZyGxmQRqO2NHzvFq6QdCmUmILHnsN/CQyoHNWmutXtOT 2FWaNjTFiWD50zk/Dxe186WQN2XMCEJI2BsLXrlDJjyvwPs18JxwUOqdLxkMORb+Lioo eRC9FXqWip2BIDnkJZkdiTObXOhBYIAiAKq8cvq8nuTCW1YMRhzurL5A/uzCmSFj7hyg GXt7OOOOcjqHOtPhaK+AD1EPZs5le4tDTbbCqcLyyLgOp4Sot6PDhvTu/NflP1AXHfzx B4oylhVO04KEC9GqZ5JPJPrsIIhoBF03M7i2VFfxvrhXBql7o8ZfMZzkJ0prfBbtkrIQ 0NuQ== X-Gm-Message-State: AOAM531+6AaKx1+PWFzG57LUkAVwbNlg4LoHzs+hVpu9AdKeaDRA9t0a HSN3xjGIlMlfkLwXCgQ+oX0mg+P9QgEOEsz189c= X-Google-Smtp-Source: ABdhPJwW6+o+2ejp7A4NSznE0JNONkUUKBjvp7rsH6sPYXQ2TMvMJn5ygPzR1xSuEuPOuN0HNWsfHIOQQ2VH8XBfIUc= X-Received: by 2002:a19:e00c:: with SMTP id x12mr3706624lfg.376.1623693748594; Mon, 14 Jun 2021 11:02:28 -0700 (PDT) MIME-Version: 1.0 References: <877diwbm6a.fsf@gmail.com> In-Reply-To: <877diwbm6a.fsf@gmail.com> From: Bhavin Gandhi Date: Mon, 14 Jun 2021 23:31:52 +0530 Message-ID: Subject: Re: Bug: Duplicate logbook entry for repeated tasks [9.4.6 (9.4.6-gab9f2a @ /home/gustavo/.emacs.d/elpa/org-9.4.6/)] To: Gustavo Barros Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=bhavin7392@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 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=1623693788; 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=DXAtkNivW02XF+gtRcYfpM7/aOzqZrsQBjeVGEHd6sc=; b=tXDK26YgU5BUKUhsdtfMfT0BEpuQG9sIvL+pL/Do/isGmAofXmoLRS/e8nNQW0SBrSxAG5 3B/Y+rVNy2SI8gz3uVFnvHfUY0kIfeSC8MLOz9KUUWA/2SseARJNyj3lFAGjWTWm/0ARDp GLojLULfV1e9oWDXnsumrQIwfHiqS3yJfoV+/+ZiKP9b4jnL8fdm0ZAPmtB/r/02h2udgG 3cNovYj6Anspwgkv7pf783hN9ucWhrDtYlaNYjp+wDtWxj4c1pDYPrRH+fbPMoxTLkIqCs aAnxaogqgaEkf7ZEgtvxuWUdSNfJJYD9kHitFVAHaNb6nP1gbCPdGteF+Y5gOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623693788; a=rsa-sha256; cv=none; b=oo7Q6GgAMfFiVB3XZ8KeOGt0ceLsRSjjU0liQhHr4DSEafGWz9qRCi9bsA/kZmxZoDobVE rconUuDD75zy2UDtcslzrlsSPvKxtL4B8/cK8rLbj5ZElvUgEhHH4tFP44Lr080o5ZMi09 M5EOGsQCGlvIols6GVKQTKUww4Cc68YSnLM6o/TNJycgY9b9pv70gtmHMhajzWxqg1TeD9 Q7fT8QaDmPWo8ZGUFH0/XgjwP3oPwQi5yDAl3pjA4uwcL6VHyoJOUIME2/SjmUVsC0Pgnh /F7xrL+rTaSNJM01HoJQcoI86Vmwv3uMRMC+jXIX68c1BehAF+0sSBTMKKg9tw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="T0lim/L5"; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="T0lim/L5"; dmarc=pass (policy=none) header.from=gmail.com; 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: 47753115A4 X-Spam-Score: -3.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3qOEVyTdWqsr On Mon, 14 Jun 2021 at 19:10, Gustavo Barros wrote: > The marking of repeated tasks as "done" is currently resulting in > duplicate entries in the "LOGBOOK" drawer, which is not expected. I > don't know exactly when this came to be, but it does not happen in the > current built-in version (9.4.4), while it does in the latest release > (9.4.6). I was able to reproduce this, and here are my findings as well as a reproducible configuration with only a few settings. =3Dtest.org=3D file: #+begin_src org * TODO First * TODO Read book SCHEDULED: <2021-06-15 Tue +1d> #+end_src Start emacs -Q and open the test.org file. Go to the 'First' entry, and do C-c C-t. This adds an a timestamp record (this does not happen with 9.4.4, not sure if the default behavior has been changed). Changed test.org file: #+begin_src org * DONE First - State "DONE" from "TODO" [2021-06-14 Mon 23:23] * TODO Read book SCHEDULED: <2021-06-15 Tue +1d> #+end_src Now, load this configuration: #+begin_src elisp (add-to-list 'load-path "~/src/org-mode/lisp/") (setq org-todo-keywords '((sequence "TODO(t)" "|" "DONE(d!)"))) #+end_src Open the test.org again, and go to the "Read book" entry, mark it done with C-c C-t. Now, there are two timestamp changes getting recorded. #+begin_src org [=E2=80=A6] * TODO Read book SCHEDULED: <2021-06-16 Wed +1d> :PROPERTIES: :LAST_REPEAT: [2021-06-14 Mon 23:26] :END: - State "DONE" from "TODO" [2021-06-14 Mon 23:26] - State "DONE" from "TODO" [2021-06-14 Mon 23:26] #+end_src --=20 Bhavin Gandhi (bhavin192) | https://geeksocket.in