From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UmPtDbe6bl8KCAAA0tVLHw (envelope-from ) for ; Sat, 26 Sep 2020 03:51:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6Gk2Cbe6bl/1JgAAB5/wlQ (envelope-from ) for ; Sat, 26 Sep 2020 03:51:19 +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 976F29403D6 for ; Sat, 26 Sep 2020 03:51:18 +0000 (UTC) Received: from localhost ([::1]:38574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM1Ex-0004dn-Ht for larch@yhetil.org; Fri, 25 Sep 2020 23:51:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM1EW-0004db-0h for emacs-orgmode@gnu.org; Fri, 25 Sep 2020 23:50:48 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:35585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM1EU-0007oq-A3 for emacs-orgmode@gnu.org; Fri, 25 Sep 2020 23:50:47 -0400 Received: by mail-qv1-xf30.google.com with SMTP id b13so2543107qvl.2 for ; Fri, 25 Sep 2020 20:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=wYUap72XdoWwscmAJD6BAhAYTymAOVOTLsfoDkp7Sao=; b=Lfno1rLh6a1JR3WBjbXbVFI6izHG0ddtxh7HS6Lfp+P7y+JndBfyc3iF+0RxRw3Xb7 TdiCLUfAS0LB9fTQ96zThNxXNDRInHNYe2YI/wSNlqIsTVwDxvVB8LV/yTCcYIP+OlVn YWGwTu+puNmUkRraqT4wentDUZ5sJtBa7UMeyY7HgCn+/9MyJUJXD1ZnCTfMnWLowwvi VEyexPkmDlvf/a6n1THKmvT5DYvu67/a6+VQlLR0CDCsHZOWQb/8az1ECgRhPreWIJ31 BkrL1ABeFlbrPOTqmTdRVdy7hYfDb7y8hJSS3sxmrKqmLv13X8TVagnbYqd53/Exg7I7 yihQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=wYUap72XdoWwscmAJD6BAhAYTymAOVOTLsfoDkp7Sao=; b=pJauZn7c57D5DoGwsM3D0sbPAMymDdwmg62QboSXcjRmePURwF3vZVXLf2buDZy6Ww tbeRZPs7WuMToGM22qWLisDkleO15lNoQWNecJSi5uCYUGNnj1gf9Ue+Fll7hyX3as8n gixvDHGfftCQS9DwGfP/glgl11Z02P7mvUJRHjA98vsmT+prPJRD0sHP4PtoN8+NICDh nCDuW79dR29ReoG3Liw3jM5ElNQQMHt83BFuLDIK2N2xUOHBZEdTohRwZAHYlvZYy9QF MGsMn8c50G7+cy9sRASk8n9qkurqOE1ztDwWol1lq/n73qM/OMKkHM9MJ7inI2OKNzYF e8wQ== X-Gm-Message-State: AOAM533FvgL3gYx9hLdWqkgRCPod2jprJikkq7glYB2g1Xl+LSFiXYHJ B8FToqqZDBtU1rq/Q4CKkIIS7dgG4Pa5/w== X-Google-Smtp-Source: ABdhPJwAVUHmFeGU4p9CXwErkzKIT+K2msOHfvz6Ruya3/7UUiZAA3UeoX9M5gPHl7uz4akdTzMqjw== X-Received: by 2002:a0c:ee86:: with SMTP id u6mr1966664qvr.56.1601092244702; Fri, 25 Sep 2020 20:50:44 -0700 (PDT) Received: from localhost ([208.167.241.222]) by smtp.gmail.com with ESMTPSA id s25sm3544808qtc.90.2020.09.25.20.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 20:50:43 -0700 (PDT) From: Ihor Radchenko To: "James N. V. Cash" , emacs-orgmode@gnu.org Subject: Re: Bug: Occasional error with recurring tasks in agenda [9.4 (release_9.4-3-ge6021b @ /home/james/.config/emacs/straight/build/org-plus-contrib/)] In-Reply-To: <873635oe76.fsf@gmail.com> References: <87a6xhq42n.fsf@gmail.com> <87h7rpw9ra.fsf@localhost> <87o8lwo6jg.fsf@gmail.com> <873635oe76.fsf@gmail.com> Date: Sat, 26 Sep 2020 11:49:39 +0800 Message-ID: <87eempjiy4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=yantar92@gmail.com; helo=mail-qv1-xf30.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Lfno1rLh; 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-Spam-Score: -1.21 X-TUID: CETSMCjmQxPN > This doesn't happen with emacs -Q, so presumably there's something in my > config that's making this happen, but I have no idea what I should be > looking for. Any suggestions? I sometimes observe similar behaviour if I delete/refile task in file. Then, if agenda view is not refreshed, tasks nearby might be messed up. Presumably, it happens because markers saved in the agenda view (see 'org-hd-marker or 'org-marker text properties in agenda) are outdated and point to wrong place. So, you may need to check your config for any code affecting markers or changing text in buffer. Best, Ihor James N. V. Cash writes: >>>> It seems to always work properly from the org buffer itself, so I assume >>>> it's something happening in the agenda, but I'm not sure where to look. >>>> I've tried debugging `org-agenda-todo`, but I can't see anything in >>>> askance there. Any advice as to what I should be looking for? > > Trying to do more work to track this down and I'm perhaps more confused than I was before. > > I can consistently make this happen by opening my todo.org file which > contains two recurring tasks, call them A and B. > > I start by putting the cursor on task A, then running org-agenda and > using that to complete task B. This then results in task A showing twice > in the agenda list and refreshing the agenda/checking the file shows > task A completed & rescheduled to the next day and task B marked DONE > and not repeated. > > Trying to track this down, I see in `org-todo`, the point moves from > where org-agenda-todo positioned it in task B to inside where I had the > cursor originally in the todo.org buffer, in task A. Strangely, I see > the point changing when the `next` variable is printed out via > `message` (I can also see the point changing after logging out org-state). > > If I print out either of those variables with the "%S" format string > instead of "%s", the point doesn't move. > > This doesn't happen with emacs -Q, so presumably there's something in my > config that's making this happen, but I have no idea what I should be > looking for. Any suggestions? > > James