From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qJkYMh9cx2D4JAAAgWs5BA (envelope-from ) for ; Mon, 14 Jun 2021 15:39:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CFaSLR9cx2CtNQAAbx9fmQ (envelope-from ) for ; Mon, 14 Jun 2021 13:39:43 +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 1E4D4225ED for ; Mon, 14 Jun 2021 15:39:43 +0200 (CEST) Received: from localhost ([::1]:34182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsmoW-0005S6-VS for larch@yhetil.org; Mon, 14 Jun 2021 09:39:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsmoA-0005Rr-97 for emacs-orgmode@gnu.org; Mon, 14 Jun 2021 09:39:18 -0400 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:34584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsmo8-000611-BH for emacs-orgmode@gnu.org; Mon, 14 Jun 2021 09:39:17 -0400 Received: by mail-qk1-x729.google.com with SMTP id k11so36720714qkk.1 for ; Mon, 14 Jun 2021 06:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:user-agent:from:to:subject:message-id:date:mime-version; bh=X8tTJ3W/t5wb1jmqCK2+GJsoXbwchzE4Q5TRyjwCEMA=; b=OsU5Tf339gLmazSnOJ0ZipqHme1gSZ+UeG0PcSaBvSPebHffP74TrJoRNWj4YbZryG H93BCgp1v5yczvs2jcfHHNZM49G2arvHbEkTkw7DaXTNwnwj5qIqF12bpgpQqNCWIHIT 9uXvVLY24P2I8vaPjoE+FSqJAFPnk9oJJOVVOa90LNqIfk0RrT/xvteZqPv3biTFBCxi 4e0aTrSP/fT7f8ekkr4me08EeFddZeVlWmqhhS+Vlzb1biJrER0QKuOPFBVFUHPAr8v4 lmVdpRFGm9PRXrba1z+uzdfbJ7TuPepEgO3XUuoj8IhDlpEpDLa66HcGiVQyLpJmKU4D y4RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:user-agent:from:to:subject:message-id :date:mime-version; bh=X8tTJ3W/t5wb1jmqCK2+GJsoXbwchzE4Q5TRyjwCEMA=; b=gkvgKWekH3LQr2EcC2EOfVNUf8Nl0erm/qWaaAC3ILF8Lqct9j8pyMRrlJD2xcDW0F 8gLxPj4ZNK5upMNdbHtlVmE+JcM9/RmFPbspIOeFNPuOrWobv8LFwZRq9suMR3ZGzN9/ 8/1VOtwPacuwTaamNrkR58SWebzfi7iYv1/Qd6l2SgxEvodn10RWLD7mSJPPo1W0jJwx 5pJ8U9+wHKaGP2Io1GqBq+eKkmedbm73+JZ9ItUbRrR1/JkNGGkZljGvY/zjoYKwb+U8 YmyahBSKqPLN7iPHF/E89oNkwVFy2xDGnwMhikDAd7jZRm9cM04A15t3LALnX/jPk+Gv ELNA== X-Gm-Message-State: AOAM533iIPwhl7CeA8ztlbZTaOqZYvLSMA2xA5iDpXsFUU945QEaKy4d EYdt/hb2ZnVx9cyhhPDdUiNROuTJWqBlww== X-Google-Smtp-Source: ABdhPJxvqK+VCYplV+VaEPgMw+6WqTwEGwvq8rszkGVVjMc6/af1HnoOwprLtFCKho3IabNUZMZX2w== X-Received: by 2002:a37:7e85:: with SMTP id z127mr16222258qkc.133.1623677954444; Mon, 14 Jun 2021 06:39:14 -0700 (PDT) Received: from gusbrs-laptop ([102.129.153.123]) by smtp.gmail.com with ESMTPSA id r22sm5530578qtm.82.2021.06.14.06.39.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 06:39:13 -0700 (PDT) User-agent: mu4e 1.4.15; emacs 27.2 From: Gustavo Barros To: emacs-orgmode@gnu.org Subject: Bug: Duplicate logbook entry for repeated tasks [9.4.6 (9.4.6-gab9f2a @ /home/gustavo/.emacs.d/elpa/org-9.4.6/)] Message-ID: <877diwbm6a.fsf@gmail.com> Date: Mon, 14 Jun 2021 10:39:09 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=gusbrs.2016@gmail.com; helo=mail-qk1-x729.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: , 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=1623677983; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=X8tTJ3W/t5wb1jmqCK2+GJsoXbwchzE4Q5TRyjwCEMA=; b=dZDQK65KYFGwDk+uNZKpsM0BAiuf2OY5tUjEDxRyUkvFQrT7rH3cE+LkIBPhdsV0DjvL3e tCJHrBce6os0iOyAM0+sdEorR/es31P70dMRPaowz7AVwNEgpJWErBrhkA8T+DWwkRGdnp 9+SZNcBLwz+llWydoZ+kJhbxnNQiDGYHNjjV9kABjh4Sn2AFd8Kk4wmQOEHt0DWS09CZnS RjzU3kKX5H/4FvwalDGqWg3dFXwJtosVaMt6cG+kbZyJ17eUbCTPd/UyHS9U3Jc/neM6H2 VgtQArKAYREKKwdKv64nidpy6AwNPtiafjlGM9c8cC2DDHEnxPq1w2h0XhogLA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623677983; a=rsa-sha256; cv=none; b=tea85cH3BCm1mepQiEE4afUXe8cqcdfR5c7BrwxbDMg7/O4TO/S0Xro8mu2PoNmt01AEJO IC2u5/B8A4JjmLNEyCoyZRFrX5OWaTF1KilVtRkaMHqGjMFhH6jhpBVobzd2a3uuK6w07S 2rKrECYmw/VV7WQhm210h2FBIzoHFFnXhRi75QonicxQLVVrSIu2gWaRHQIfmr9B+QOMCN oL4YXO5xVltuFx4DR1ocH2nR8CvZIH7nw7ZlhivaySretDG+JzzDhp76O2ZoiSzqA9AbSM W+sz/8Bo3UBpqAb65xkJmGN1ephvSueSWFLdoaSu5cLPz7PEDzWWYTOEkxJDMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=OsU5Tf33; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=OsU5Tf33; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 1E4D4225ED X-Spam-Score: -1.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZuqW6WD+hT7r Hi All, 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). An ECM to reproduce the issue is the following. Start 'emacs -Q' and do an initial setup: #+begin_src emacs-lisp (add-to-list 'load-path "~/.emacs.d/elpa/org-9.4.6") (setq org-log-into-drawer t) (setq org-log-done 'time) (setq org-todo-keywords '((sequence "TODO(t)" "SOMEDAY(s)" "|" "DONE(d!)") (sequence "NEXT(n)" "WAIT(w@/!)" "|" "CANCELED(c@/!)"))) #+end_src Visit file =test.org= with contents: #+begin_src org ,* TODO Foo SCHEDULED: <2021-06-13 Sun +1d> #+end_src Now call "C-c C-t" (`org-todo'), and call the key "d" for "DONE", as per the above settings. The resulting buffer is: #+begin_src org ,* TODO Foo SCHEDULED: <2021-06-15 Tue +1d> :PROPERTIES: :LAST_REPEAT: [2021-06-14 Mon 10:27] :END: :LOGBOOK: - State "DONE" from "TODO" [2021-06-14 Mon 10:27] - State "DONE" from "TODO" [2021-06-14 Mon 10:27] :END: #+end_src Best regards, Gustavo. Emacs : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-03-25 Package: Org mode version 9.4.6 (9.4.6-gab9f2a @ /home/gustavo/.emacs.d/elpa/org-9.4.6/) current state: ============== (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-log-done 'time org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-log-into-drawer t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((sequence "TODO(t)" "SOMEDAY(s)" "|" "DONE(d!)") (sequence "NEXT(n)" "WAIT(w@/!)" "|" "CANCELED(c@/!)")) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-export-before-parsing-hook '(org-attach-expand-links) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) org-link-elisp-confirm-function 'yes-or-no-p )