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 EPWmK0lSOV+8PQAA0tVLHw (envelope-from ) for ; Sun, 16 Aug 2020 15:35:37 +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 fRppJ0lSOV/xGwAAB5/wlQ (envelope-from ) for ; Sun, 16 Aug 2020 15:35: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 7A45294051F for ; Sun, 16 Aug 2020 15:35:36 +0000 (UTC) Received: from localhost ([::1]:52190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7Kh5-0003aP-D8 for larch@yhetil.org; Sun, 16 Aug 2020 11:35:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7KgP-0003aH-0D for emacs-orgmode@gnu.org; Sun, 16 Aug 2020 11:34:53 -0400 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]:40389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7KgM-0003AV-Gh for emacs-orgmode@gnu.org; Sun, 16 Aug 2020 11:34:52 -0400 Received: by mail-ot1-x32e.google.com with SMTP id h16so11523484oti.7 for ; Sun, 16 Aug 2020 08:34:50 -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; bh=lHx6a82t+5ri2JPj9PRycJx03aE3HDHylxSfdrMrpkI=; b=EEF8BK4mt6F6fWUMtzXe4xWoZsw8UecemLBiKoptFfvK5UCVd31CcS11E0h9LTmUBW uULWx58H5t8PCvJGWoQh+hOtNl95nnnm/qKuLo2202p/uy5AfzK8E4oTSac7C42zUs6i tSkLnDUpWqNQiqjDFeM9iGLZXeQccZ99FSBZE4fg6l92zB+RAIVk3eaU6GySOE3cRDSk Re5i4RW9Il9VHjwRjYqiwPGhbBQAhMhY+ydBIA6e2LqIU89ywIqYV9jAyZKc36nMYbeA m53LJ+ysso8CVYfFSP1jyk0791g4tb1myRdlMqxppnDao9H2f/za4RuxJt2hlzvz2+cw 4Pkw== 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; bh=lHx6a82t+5ri2JPj9PRycJx03aE3HDHylxSfdrMrpkI=; b=m4uh3+WeLkXhPAaWdMd5YcjLMqKFO2W4RXFTmrjDpdYqIYBq/2P3gAeXWdUP9feqCY pJ1Er8KaGr9e0jMWXKXGk3A0Qn1ZlBxxPZBq0IQfHcxMfNP/TL9q4j61rb8VW7nTTRVR ABUcM6jasGaKdMV/GxqpMpc+hfgESpu5po2yC5mQHBlWmrgQ8Lw8aUsDCNz2ySZcPYIT 93LZ8ZmlDypebObCpeRL44mzB0SNmn8z15DiMv3GBjaxw6j62BvJ/5Ecfln1vz63o+mq PA2XKKFg55vLQdVK5cUURiUnJLoIKOpgfnpRQB6pVClIcPXFA8zV2a1XYkfgmAhlaocC uIvA== X-Gm-Message-State: AOAM533nQvhdTQEwhX/o7mJSEys7e1sUtDKGyiiCAPkGlOKJ0CxxuBgH Vwfyq9FsuJeKWS6y7O9y8W/xlAWjs7Jx6XGXekJwHIWr X-Google-Smtp-Source: ABdhPJxBYGBgIdf+XMNwqAfjRsBbHWkTwLgUzh6uvtJHPp42NHLo0Veds+GajaZJp25R2I2YTa98qBHKxG6Hd+XBVvY= X-Received: by 2002:a9d:6f07:: with SMTP id n7mr8016672otq.164.1597592089044; Sun, 16 Aug 2020 08:34:49 -0700 (PDT) MIME-Version: 1.0 References: <87k0xzamdy.fsf@kyleam.com> <87v9hihldf.fsf@localhost> In-Reply-To: From: =?UTF-8?B?RGlubnnDqXMgRMOhbmllbA==?= Date: Sun, 16 Aug 2020 16:34:13 +0100 Message-ID: Subject: Re: Bug: org-agenda-todo applied to wrong line item [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000f6aaed05ad00644d" Received-SPF: pass client-ip=2607:f8b0:4864:20::32e; envelope-from=dinnyesd@gmail.com; helo=mail-ot1-x32e.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: -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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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: Ihor Radchenko Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=EEF8BK4m; 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-Spam-Score: 0.09 X-TUID: WsxRD0m/fatL --000000000000f6aaed05ad00644d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Made some corrections in the text below (marked with red). Also, removed the unnecessary "some text" from the body of baz1 item, as the issue can reproduce without it. On Sun, 16 Aug 2020 at 16:01, Dinny=C3=A9s D=C3=A1niel = wrote: > I have tried reproducing it with a minimal example, and this works for me= : > > * FOO > ** TODO baz1 > SCHEDULED: <2020-08-16 Sun> > > * BAR > ** TODO baz2 > SCHEDULED: <2020-08-16 Sun> > *** DONE baz3 > SCHEDULED: <2020-08-16 Sun> > *** TODO baz4 > SCHEDULED: <2020-08-16 Sun> > > When in the agenda, on the front line of item baz1, setting it to DONE > state works fine. > OTOH, when going to the end of the line on the item baz1, trying to set > it to DONE results in the error message: > TODO state change from TODO to DONE blocked (by "TODO baz4") > > Also, I have (org-enforce-todo-dependencies t), which causes the blocking, > and (org-agenda-dim-blocked-tasks (quote invisible)), which hides baz2 > from the agenda... because of this baz1 is followed directly by baz4 in > my agenda window. > > Since baz4 is not a direct / transitive dependency to baz1, this blocking > shouldn't happen. > I assume this happening has something to do with their closeness in the > agenda ordering, and the cursor position. > Maybe the org-agenda-todo function somehow gets "confused" by running it at > the end of the line in the agenda. > Just for completeness, this is a snapshot of my lengthy org configuration: > (use-package org > :init > (defun org-archive-done-tasks () > "Archive all DONE and CANCELED tasks in the subtree of the current > entry" > (interactive) > (org-map-entries > (lambda () > (org-archive-subtree) > (setq org-map-continue-from (outline-previous-heading))) > "//DONE|CANCELED" 'agenda)) > :bind > (("C-c a" . org-agenda) > ("C-c k" . org-capture) > :map org-mode-map > ("C-c H" . org-archive-done-tasks) > ("C-c e" . org-babel-execute-src-block)) > :hook > (text-mode . visual-line-mode) > :config > (custom-set-variables > '(org-agenda-span 'day) > '(org-startup-indented t) > '(org-startup-folded nil) > '(org-directory "~/Workspace/org/") > '(org-agenda-files (list org-directory)) > '(org-archive-location "archives.org::datetree/* %s") > '(org-agenda-diary-file (concat org-directory "diary.org")) > '(org-agenda-include-diary t) > '(org-deadline-warning-days 7) > '(org-agenda-skip-deadline-prewarning-if-scheduled 'pre-scheduled) > '(org-agenda-skip-scheduled-if-deadline-is-shown t) > '(org-agenda-skip-scheduled-if-done t) > '(org-agenda-todo-ignore-scheduled 'future) > '(org-agenda-tags-todo-honor-ignore-options t) > ;; set SCHEDULED and DEADLINE leaders in agenda view > '(org-agenda-deadline-leaders (quote ("Deadline! " "In %d days: " > "Late %d days: "))) > '(org-agenda-scheduled-leaders (quote ("Scheduled! " "For %d days: "))= ) > '(org-agenda-window-setup 'only-window) > '(org-todo-keywords > (quote ((sequence "TODO(t!)" "ONGOING(o!)" "WAITING(w@)" "|" "DONE(d= @)" > "CANCELED(c@)")))) > '(org-todo-keyword-faces > (quote (("WAITING" . "purple") > ("ONGOING" . "orange") > ("CANCELED" . "firebrick")))) > ;; set ARCHIVE tag when todo state is set to CANCELED, and remove when > reset to TODO > `(org-todo-state-tags-triggers > (quote > ((todo . ((,org-archive-tag . nil))) > ("CANCELED" . ((,org-archive-tag . t)))))) > '(org-tag-persistent-alist > '(("TARGET" . ?t))) > '(org-tags-exclude-from-inheritance (quote ("TARGET"))) > ;; REFILE BEHAVIOUR > '(org-refile-targets > '((nil . (:level . 1)) > (nil . (:tag . "TARGET")))) > '(org-refile-use-outline-path t) > '(org-goto-interface 'outline-path-completion) > '(org-outline-path-complete-in-steps t) > ;; prefer in-steps that ido for refile completion > ;; '(org-completion-use-ido t) > '(org-reverse-note-order t) > > ;; LOGGING > ;; todo state changes should be logged into drawer > '(org-log-into-drawer t) > ;; log when schedule or deadline changes > '(org-log-redeadline (quote time)) > '(org-log-reschedule (quote time)) > ;;'(org-log-refile (quote time)) ; logs even when refiled during captu= re > > ;; PRIORITIES > '(org-priority-start-cycle-with-default t) > '(org-default-priority 70) > '(org-lowest-priority 70) > '(org-highest-priority 65) > '(org-agenda-sorting-strategy > '((agenda time-up todo-state-down priority-down) > (todo category-up priority-down) > (tags category-up priority-down) > (search category-up))) > > ;; DEPENDENCIES > '(org-enforce-todo-dependencies t) > '(org-enforce-todo-checkbox-dependencies t) > '(org-agenda-dim-blocked-tasks (quote invisible)) > > ;; CUSTOM COMMANDS > '(org-agenda-custom-commands > '(("c" . "Custom commands") > ("cb" "Backlog (tasks not scheduled)" todo "TODO" > ((org-agenda-skip-function > '(org-agenda-skip-entry-if 'scheduled)))) > ("cc" . "Filter tasks by CATEGORY") > ("cci" "INBOX tasks" > ((alltodo "")) > ((org-agenda-category-filter-preset '("+INBOX")))) > ("ccf" "INFRA tasks" > ((alltodo "")) > ((org-agenda-category-filter-preset '("+INFRA")))) > ("ccr" "ROLES tasks" > ((alltodo "")) > ((org-agenda-category-filter-preset '("+ROLES")))))) > > ;; CAPTURE TEMPLATES > '(org-capture-templates > (quote > (("t" "Task") > ("tt" "Task (Scheduled)" entry > (file+headline "tasks.org" "INBOX") > "* TODO %^{Title}\nSCHEDULED: %t\n%?") > ("td" "Task (Scheduled, with Deadline)" entry > (file+headline "tasks.org" "INBOX") > "* TODO %^{Title}\nSCHEDULED: %^{Schedule}t DEADLINE: %^{Deadline}t\n%?") > ("e" "Event") > ("et" "Event (with single datetime)" entry > (file+headline "events.org" "INBOX") > "* %^{Title}\n%^T\n%?") > ("er" "Event (with date range)" entry > (file+headline "events.org" "INBOX") > "* %^{Title}\n%^t--%^t\n%?") > ("m" "Memo" entry > (file+headline "memo.org" "INBOX") > "* %?\n%T\n") > ("x" "Example" entry > (file+headline "example.org" "INBOX") > "* %?\n%^t\n")))))) > > Regards, > Daniel > > On Sun, 16 Aug 2020 at 12:38, Ihor Radchenko wrote: > >> > Using Emacs 26.3 with a vanilla configuration and the Org repo checked >> > out at 5e4542d69 (the commit reported in the subject line), I didn't s= ee >> > the behavior you describe. With point at the end of the agenda line f= or >> > A, the state was changed for A. >> >> I think that may happen when you have agenda filter active and an entry >> hidden by filter is between the current and next line. >> >> Best, >> Ihor >> >> >> Kyle Meyer writes: >> >> > Dinny=C3=A9s D=C3=A1niel writes: >> > >> >> While in the Org Agenda, and navigating to the end of line for a give= n >> item >> >> (assuming more than one todo items), and calling org-agenda-todo (wit= h >> >> keybindings t, or C-c C-t)... this result in the call being applied t= o >> the >> >> next line item, instead of the one the cursor is on. >> >> >> >> This only happens when the cursor is at the end of the line. >> >> >> >> I would consider this to be a bug. >> > >> > I tried using the following content as the agenda file: >> > >> > * TODO A >> > * TODO B >> > >> > Using Emacs 26.3 with a vanilla configuration and the Org repo checked >> > out at 5e4542d69 (the commit reported in the subject line), I didn't s= ee >> > the behavior you describe. With point at the end of the agenda line f= or >> > A, the state was changed for A. >> > >> > I also can't trigger the behavior with the master branch checked out. >> > --000000000000f6aaed05ad00644d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Made some corrections in the text below (marked with = red).
Also, removed the= unnecessary "some text" from the body of baz1 item, as the issue= can reproduce without it.

On Sun, 16 Aug 2020 at 16:01, Dinny=C3=A9s D= =C3=A1niel <dinn= yesd@gmail.com> wrote:
I have tried reproducing it with a mini= mal example, and this works for me:

* FOO
** TODO baz1
SCHEDULED: <2020-08-16 = Sun>
=C2=A0
* BAR
** TODO baz2
SCHEDULED: <2020-08-16 Sun>
*** D= ONE baz3
SCHEDULED: <2020-08-16 Sun>
*** TODO baz4
SCHEDULED= : <2020-08-16 Sun>

When in the agenda= , on the front line of item baz1,= setting it to DONE state works fine.
OTOH, when going to the end= of the line on the item baz1, tr= ying to set it to DONE results in the error message:
TODO state change from TODO to DONE blocked (by = "TODO baz4")
=C2=A0
Also, I have (org-enforce-todo-dep= endencies t), which causes the blocking, and (org-agenda-dim-blocked-tasks (quote invisible)), whi= ch hides baz2 from the agenda.= .. because of this baz1 is fol= lowed directly by baz4 in my a= genda window.

Since baz4 is not a direct / transitive dependency to baz1, this bl= ocking shouldn't happen.
I assume this happening has something to do with their cl= oseness in the agenda ordering, and the cursor position.
Maybe the org-agenda-todo function somehow = gets "confused" by running it at the end of the line in the agend= a.
=C2=A0
Just for completeness, this is a snapshot of my lengthy org configuratio= n:
(use-package org
= =C2=A0 :init
=C2=A0 (defun org-archive-done-tasks ()
=C2=A0 =C2=A0 &q= uot;Archive all DONE and CANCELED tasks in the subtree of the current entry= "
=C2=A0 =C2=A0 (interactive)
=C2=A0 =C2=A0 (org-map-entries
= =C2=A0 =C2=A0 =C2=A0(lambda ()
=C2=A0 =C2=A0 =C2=A0 =C2=A0(org-archive-s= ubtree)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(setq org-map-continue-from (outline-= previous-heading)))
=C2=A0 =C2=A0 =C2=A0"//DONE|CANCELED" '= ;agenda))
=C2=A0 :bind
=C2=A0 (("C-c a" . org-agenda)
= =C2=A0 =C2=A0("C-c k" . org-capture)
=C2=A0 =C2=A0:map org-mod= e-map
=C2=A0 =C2=A0("C-c H" . org-archive-done-tasks)
=C2= =A0 =C2=A0("C-c e" . org-babel-execute-src-block))
=C2=A0 :hoo= k
=C2=A0 (text-mode . visual-line-mode)
=C2=A0 :config
=C2=A0 (cus= tom-set-variables
=C2=A0 =C2=A0'(org-agenda-span 'day)
=C2=A0= =C2=A0'(org-startup-indented t)
=C2=A0 =C2=A0'(org-startup-fold= ed nil)
=C2=A0 =C2=A0'(org-directory "~/Workspace/org/")=C2=A0 =C2=A0'(org-agenda-files (list org-directory))
=C2=A0 =C2= =A0'(org-archive-location "archives.org::datetree/* %s")
= =C2=A0 =C2=A0'(org-agenda-diary-file (concat org-directory "diary.org"))
=C2=A0 = =C2=A0'(org-agenda-include-diary t)
=C2=A0 =C2=A0'(org-deadline-= warning-days 7)
=C2=A0 =C2=A0'(org-agenda-skip-deadline-prewarning-i= f-scheduled 'pre-scheduled)
=C2=A0 =C2=A0'(org-agenda-skip-sched= uled-if-deadline-is-shown t)
=C2=A0 =C2=A0'(org-agenda-skip-schedule= d-if-done t)
=C2=A0 =C2=A0'(org-agenda-todo-ignore-scheduled 'fu= ture)
=C2=A0 =C2=A0'(org-agenda-tags-todo-honor-ignore-options t)=C2=A0 =C2=A0;; set SCHEDULED and DEADLINE leaders in agenda view
=C2= =A0 =C2=A0'(org-agenda-deadline-leaders (quote ("Deadline! =C2=A0&= quot; "In %d days: " "Late %d days: ")))
=C2=A0 =C2= =A0'(org-agenda-scheduled-leaders (quote ("Scheduled! " "= ;For %d days: ")))
=C2=A0 =C2=A0'(org-agenda-window-setup '= only-window)
=C2=A0 =C2=A0'(org-todo-keywords
=C2=A0 =C2=A0 =C2= =A0(quote ((sequence "TODO(t!)" "ONGOING(o!)" "WAI= TING(w@)" "|" "DONE(d@)" "CANCELED(c@)")= )))
=C2=A0 =C2=A0'(org-todo-keyword-faces
=C2=A0 =C2=A0 =C2=A0(qu= ote (("WAITING" . "purple")
=C2=A0 =C2=A0 ("O= NGOING" . "orange")
=C2=A0 =C2=A0 ("CANCELED"= . "firebrick"))))
=C2=A0 =C2=A0;; set ARCHIVE tag when todo s= tate is set to CANCELED, and remove when reset to TODO
=C2=A0 =C2=A0`(or= g-todo-state-tags-triggers
=C2=A0 =C2=A0 =C2=A0(quote
=C2=A0 =C2=A0 = =C2=A0 ((todo . ((,org-archive-tag . nil)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(= "CANCELED" . ((,org-archive-tag . t))))))
=C2=A0 =C2=A0'(o= rg-tag-persistent-alist
=C2=A0 =C2=A0 =C2=A0'(("TARGET" . = ?t)))
=C2=A0 =C2=A0'(org-tags-exclude-from-inheritance (quote ("= ;TARGET")))
=C2=A0 =C2=A0;; REFILE BEHAVIOUR
=C2=A0 =C2=A0'(= org-refile-targets
=C2=A0 =C2=A0 =C2=A0'((nil . (:level . 1))
=C2= =A0 =C2=A0 =C2=A0 =C2=A0(nil . (:tag . "TARGET"))))
=C2=A0 =C2= =A0'(org-refile-use-outline-path t)
=C2=A0 =C2=A0'(org-goto-inte= rface 'outline-path-completion)
=C2=A0 =C2=A0'(org-outline-path-= complete-in-steps t)
=C2=A0 =C2=A0;; prefer in-steps that ido for refile= completion
=C2=A0 =C2=A0;; '(org-completion-use-ido t)
=C2=A0 = =C2=A0'(org-reverse-note-order t)

=C2=A0 =C2=A0;; LOGGING
=C2= =A0 =C2=A0;; todo state changes should be logged into drawer
=C2=A0 =C2= =A0'(org-log-into-drawer t)
=C2=A0 =C2=A0;; log when schedule or dea= dline changes
=C2=A0 =C2=A0'(org-log-redeadline (quote time))
=C2= =A0 =C2=A0'(org-log-reschedule (quote time))
=C2=A0 =C2=A0;;'(or= g-log-refile (quote time)) ; logs even when refiled during capture

= =C2=A0 =C2=A0;; PRIORITIES
=C2=A0 =C2=A0'(org-priority-start-cycle-w= ith-default t)
=C2=A0 =C2=A0'(org-default-priority 70)
=C2=A0 =C2= =A0'(org-lowest-priority 70)
=C2=A0 =C2=A0'(org-highest-priority= 65)
=C2=A0 =C2=A0'(org-agenda-sorting-strategy
=C2=A0 =C2=A0 =C2= =A0'((agenda time-up todo-state-down priority-down)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0(todo category-up priority-down)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0(tags category-up priority-down)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(search c= ategory-up)))

=C2=A0 =C2=A0;; DEPENDENCIES
=C2=A0 =C2=A0'(org= -enforce-todo-dependencies t)
=C2=A0 =C2=A0'(org-enforce-todo-checkb= ox-dependencies t)
=C2=A0 =C2=A0'(org-agenda-dim-blocked-tasks (quot= e invisible))

=C2=A0 =C2=A0;; CUSTOM COMMANDS
=C2=A0 =C2=A0'(= org-agenda-custom-commands
=C2=A0 =C2=A0 =C2=A0'(("c" . &q= uot;Custom commands")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("cb" &q= uot;Backlog (tasks not scheduled)" todo "TODO"
((org-age= nda-skip-function
=C2=A0'(org-agenda-skip-entry-if 'scheduled)= )))
=C2=A0 =C2=A0 =C2=A0 =C2=A0("cc" . "Filter tasks by C= ATEGORY")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("cci" "INBOX t= asks"
((alltodo ""))
((org-agenda-category-filter-pr= eset '("+INBOX"))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0("ccf&= quot; "INFRA tasks"
((alltodo ""))
((org-agenda= -category-filter-preset '("+INFRA"))))
=C2=A0 =C2=A0 =C2= =A0 =C2=A0("ccr" "ROLES tasks"
((alltodo "&quo= t;))
((org-agenda-category-filter-preset '("+ROLES"))))))=

=C2=A0 =C2=A0;; CAPTURE TEMPLATES
=C2=A0 =C2=A0'(org-capture= -templates
=C2=A0 =C2=A0 =C2=A0(quote
=C2=A0 =C2=A0 =C2=A0 (("t&= quot; "Task")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("tt" "= ;Task (Scheduled)" entry
(file+headline "tasks.org" "INBOX")
"= ;* TODO %^{Title}\nSCHEDULED: %t\n%?")
=C2=A0 =C2=A0 =C2=A0 =C2=A0(= "td" "Task (Scheduled, with Deadline)" entry
(file+= headline "tasks.org= " "INBOX")
"* TODO %^{Title}\nSCHEDULED: %^{Schedul= e}t DEADLINE: %^{Deadline}t\n%?")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("= ;e" "Event")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("et" &= quot;Event (with single datetime)" entry
(file+headline "events.org" "INBO= X")
"* %^{Title}\n%^T\n%?")
=C2=A0 =C2=A0 =C2=A0 =C2= =A0("er" "Event (with date range)" entry
(file+head= line "events.org&q= uot; "INBOX")
"* %^{Title}\n%^t--%^t\n%?")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0("m" "Memo" entry
(file+hea= dline "memo.org"= ; "INBOX")
"* %?\n%T\n")
=C2=A0 =C2=A0 =C2=A0 = =C2=A0("x" "Example" entry
(file+headline "example.org" "I= NBOX")
"* %?\n%^t\n"))))))

Regards,
Dan= iel

On Sun, 16 Aug 2020 at 12:38, Ihor Radchenko <= ;yantar92@gmail.com= > wrote:
= > Using Emacs 26.3 with a vanilla configuration and the Org repo checked=
> out at 5e4542d69 (the commit reported in the subject line), I didn'= ;t see
> the behavior you describe.=C2=A0 With point at the end of the agenda l= ine for
> A, the state was changed for A.

I think that may happen when you have agenda filter active and an entry
hidden by filter is between the current and next line.

Best,
Ihor


Kyle Meyer <kyle@ky= leam.com> writes:

> Dinny=C3=A9s D=C3=A1niel writes:
>
>> While in the Org Agenda, and navigating to the end of line for a g= iven item
>> (assuming more than one todo items), and calling org-agenda-todo (= with
>> keybindings t, or C-c C-t)... this result in the call being applie= d to the
>> next line item, instead of the one the cursor is on.
>>
>> This only happens when the cursor is at the end of the line.
>>
>> I would consider this to be a bug.
>
> I tried using the following content as the agenda file:
>
>=C2=A0 =C2=A0 =C2=A0* TODO A
>=C2=A0 =C2=A0 =C2=A0* TODO B
>
> Using Emacs 26.3 with a vanilla configuration and the Org repo checked=
> out at 5e4542d69 (the commit reported in the subject line), I didn'= ;t see
> the behavior you describe.=C2=A0 With point at the end of the agenda l= ine for
> A, the state was changed for A.
>
> I also can't trigger the behavior with the master branch checked o= ut.
--000000000000f6aaed05ad00644d--