From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iCqkJqpKOV9XVAAA0tVLHw (envelope-from ) for ; Sun, 16 Aug 2020 15:03:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0ClSIqpKOV/4JAAAbx9fmQ (envelope-from ) for ; Sun, 16 Aug 2020 15:03:06 +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 E05609407C8 for ; Sun, 16 Aug 2020 15:03:05 +0000 (UTC) Received: from localhost ([::1]:40584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7KBc-0002dg-BW for larch@yhetil.org; Sun, 16 Aug 2020 11:03:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7KBE-0002dY-0E for emacs-orgmode@gnu.org; Sun, 16 Aug 2020 11:02:40 -0400 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]:33706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7KBB-0007hf-H8 for emacs-orgmode@gnu.org; Sun, 16 Aug 2020 11:02:39 -0400 Received: by mail-oo1-xc36.google.com with SMTP id g18so2919849ooa.0 for ; Sun, 16 Aug 2020 08:02:37 -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=weEefB2Sr0JrluqY3DNsfrESDJJjDJXkHGbz/sayTxM=; b=gkRup+MLJJfp4/dwVqxb/pjKPLmPQYAVP1BMaAMlpXplyFsfdxow/9N2OQtLu+Iv2s eFeRX2flaAJMZzBWMs3sLJoLZjdxctlTT4EcKUVmu2jGj8KaJ6s+F0TwM6VRuEKhSZvM Y1UYcKH+EMS8BnOpKemEwryh5/9/4OAEff4uUXud+TVqPwgPpFPphvk2L6jZ7o8PC38c lFPAx4ZMjN5TGSwnH2WSoRNSGcMk0ukvNdTsm4qagpxRyUtuHz8hF1xR8Z0yoWd/9P2z +e21V4X4vyeqvYRTxbybhSnlkMPmxpL6rmSqronP9d4QFsSt75AkU55D/9tQmtKtmS6g kGQA== 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=weEefB2Sr0JrluqY3DNsfrESDJJjDJXkHGbz/sayTxM=; b=qD8ykuogOIr03K2iKG0pGHIvz5pJhoU08218xEdZU5StHWz8kCmB/Ed93Zb7vjyR6z WYPXCOfqTAZfMqBj5Rq5+jRBkavOcEfoZe53GYmDmz+uuutpKqL+yH5iu/OEQvKAlWZG jycDJSYjE5SjdtMsquTCK4r7afLB+8Ct/bembV32FFZruvxQoO0bmMzs06NbK9qUkQs2 CX+BSY7I5QEyw9SMfV2KFayzTqVzNI9mVtyjxdimTLbE0B975falWpdsu8+8235B8NRk oWC3PgbDPAmBdJLZqfzJC6PYRJjm7ntQ4IngE4toxniPNpRxm/dv84TOQXifurpzW7nW tXKQ== X-Gm-Message-State: AOAM533othEcVDciyRi4okF/+CfgNV7LFOxNa2EhmRAb2V62bVgPgdEc Zq1D0ZtQZzxyH3aZch3gSueSU1KCtER0LGVC3eZN7v8v X-Google-Smtp-Source: ABdhPJwaeASW3dOlnDBEWC8HMCVIKLNQlK7cKuBemCsBQ7nqQBuTts6p0w4OsieJnzHyOqUc78VXpz40gfbsT0L8/mg= X-Received: by 2002:a4a:4150:: with SMTP id x77mr8040537ooa.21.1597590154246; Sun, 16 Aug 2020 08:02:34 -0700 (PDT) MIME-Version: 1.0 References: <87k0xzamdy.fsf@kyleam.com> <87v9hihldf.fsf@localhost> In-Reply-To: <87v9hihldf.fsf@localhost> From: =?UTF-8?B?RGlubnnDqXMgRMOhbmllbA==?= Date: Sun, 16 Aug 2020 16:01:58 +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="000000000000a4065605acfff1fe" Received-SPF: pass client-ip=2607:f8b0:4864:20::c36; envelope-from=dinnyesd@gmail.com; helo=mail-oo1-xc36.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=gkRup+ML; 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: vdP+CcEL9aoY --000000000000a4065605acfff1fe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have tried reproducing it with a minimal example, and this seems to work for me: * FOO ** TODO baz1 SCHEDULED: <2020-08-16 Sun> some text * 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 baz, setting it to DONE state works fine. OTOH, when going to the end of the line on the item baz, 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. Just for completeness, this 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 capture ;; 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 se= e > > the behavior you describe. With point at the end of the agenda line fo= r > > 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 given > 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 applied 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: > > > > * 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 se= e > > the behavior you describe. With point at the end of the agenda line fo= r > > A, the state was changed for A. > > > > I also can't trigger the behavior with the master branch checked out. > --000000000000a4065605acfff1fe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have tried reproducing it with a minimal example, a= nd this seems to work for me:

* FOO
** TODO baz1
SCHEDULED: <2020-08-16 Sun>= ;

some text

* BAR
** TODO baz2
SCHEDULED: <2020-08-1= 6 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 baz, setting it to DONE state= works fine.
OTOH, when going to the end of the line on the item = baz, trying to set it to DONE results in the error message:
TODO state change from TODO to DONE blocke= d (by "TODO baz4")

Also, I have <= span style=3D"font-family:monospace">(org-enforce-todo-dependencies t), which causes the blocking, and (o= rg-agenda-dim-blocked-tasks (quote invisible)), which hides baz2 from the agenda... because of thi= s baz1 is followed directly by= baz4 in my agenda window.
=

Just for completeness, this my lengthy org config= uration:

(use-package org
=C2=A0 :init
=C2=A0 (defun org-archive-done-tasks (= )
=C2=A0 =C2=A0 "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-subtree)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(setq org-map-co= ntinue-from (outline-previous-heading)))
=C2=A0 =C2=A0 =C2=A0"//DON= E|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-mode-map
=C2=A0 =C2=A0("C-c H" . org-archive-d= one-tasks)
=C2=A0 =C2=A0("C-c e" . org-babel-execute-src-block= ))
=C2=A0 :hook
=C2=A0 (text-mode . visual-line-mode)
=C2=A0 :conf= ig
=C2=A0 (custom-set-variables
=C2=A0 =C2=A0'(org-agenda-span &#= 39;day)
=C2=A0 =C2=A0'(org-startup-indented t)
=C2=A0 =C2=A0'= (org-startup-folded nil)
=C2=A0 =C2=A0'(org-directory "~/Worksp= ace/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-director= y "diary.org")= )
=C2=A0 =C2=A0'(org-agenda-include-diary t)
=C2=A0 =C2=A0'(o= rg-deadline-warning-days 7)
=C2=A0 =C2=A0'(org-agenda-skip-deadline-= prewarning-if-scheduled 'pre-scheduled)
=C2=A0 =C2=A0'(org-agend= a-skip-scheduled-if-deadline-is-shown t)
=C2=A0 =C2=A0'(org-agenda-s= kip-scheduled-if-done t)
=C2=A0 =C2=A0'(org-agenda-todo-ignore-sched= uled 'future)
=C2=A0 =C2=A0'(org-agenda-tags-todo-honor-ignore-o= ptions t)
=C2=A0 =C2=A0;; set SCHEDULED and DEADLINE leaders in agenda v= iew
=C2=A0 =C2=A0'(org-agenda-deadline-leaders (quote ("Deadlin= e! =C2=A0" "In %d days: " "Late %d days: ")))
= =C2=A0 =C2=A0'(org-agenda-scheduled-leaders (quote ("Scheduled! &q= uot; "For %d days: ")))
=C2=A0 =C2=A0'(org-agenda-window-s= etup 'only-window)
=C2=A0 =C2=A0'(org-todo-keywords
=C2=A0 = =C2=A0 =C2=A0(quote ((sequence "TODO(t!)" "ONGOING(o!)"= "WAITING(w@)" "|" "DONE(d@)" "CANCELED(= c@)"))))
=C2=A0 =C2=A0'(org-todo-keyword-faces
=C2=A0 =C2=A0= =C2=A0(quote (("WAITING" . "purple")
=C2=A0 =C2= =A0 ("ONGOING" . "orange")
=C2=A0 =C2=A0 ("CA= NCELED" . "firebrick"))))
=C2=A0 =C2=A0;; set ARCHIVE tag= when todo state is set to CANCELED, and remove when reset to TODO
=C2= =A0 =C2=A0`(org-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'(org-tag-persistent-alist
=C2=A0 =C2=A0 =C2=A0'(("T= ARGET" . ?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 . (:le= vel . 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= 9;(org-goto-interface 'outline-path-completion)
=C2=A0 =C2=A0'(o= rg-outline-path-complete-in-steps t)
=C2=A0 =C2=A0;; prefer in-steps tha= t 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<= br>=C2=A0 =C2=A0'(org-log-into-drawer t)
=C2=A0 =C2=A0;; log when sc= hedule or deadline changes
=C2=A0 =C2=A0'(org-log-redeadline (quote = time))
=C2=A0 =C2=A0'(org-log-reschedule (quote time))
=C2=A0 =C2= =A0;;'(org-log-refile (quote time)) ; logs even when refiled during cap= ture

=C2=A0 =C2=A0;; PRIORITIES
=C2=A0 =C2=A0'(org-priority-s= tart-cycle-with-default t)
=C2=A0 =C2=A0'(org-default-priority 70)=C2=A0 =C2=A0'(org-lowest-priority 70)
=C2=A0 =C2=A0'(org-high= est-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 category-up)))

=C2=A0 =C2=A0;; DEPENDENCIES
=C2=A0 = =C2=A0'(org-enforce-todo-dependencies t)
=C2=A0 =C2=A0'(org-enfo= rce-todo-checkbox-dependencies t)
=C2=A0 =C2=A0'(org-agenda-dim-bloc= ked-tasks (quote invisible))

=C2=A0 =C2=A0;; CUSTOM COMMANDS
=C2= =A0 =C2=A0'(org-agenda-custom-commands
=C2=A0 =C2=A0 =C2=A0'((&q= uot;c" . "Custom commands")
=C2=A0 =C2=A0 =C2=A0 =C2=A0(&= quot;cb" "Backlog (tasks not scheduled)" todo "TODO&quo= t;
((org-agenda-skip-function
=C2=A0'(org-agenda-skip-entry-if= 'scheduled))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0("cc" . "F= ilter tasks by CATEGORY")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("cci&quo= t; "INBOX tasks"
((alltodo ""))
((org-agenda-ca= tegory-filter-preset '("+INBOX"))))
=C2=A0 =C2=A0 =C2=A0 = =C2=A0("ccf" "INFRA tasks"
((alltodo ""))=
((org-agenda-category-filter-preset '("+INFRA"))))
= =C2=A0 =C2=A0 =C2=A0 =C2=A0("ccr" "ROLES tasks"
((a= lltodo ""))
((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" "Task")
=C2=A0 =C2=A0 =C2=A0 =C2=A0(&qu= ot;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}\nSCH= EDULED: %^{Schedule}t DEADLINE: %^{Deadline}t\n%?")
=C2=A0 =C2=A0 = =C2=A0 =C2=A0("e" "Event")
=C2=A0 =C2=A0 =C2=A0 =C2= =A0("et" "Event (with single datetime)" entry
(file= +headline "events.org<= /a>" "INBOX")
"* %^{Title}\n%^T\n%?")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0("er" "Event (with date range)"= entry
(file+headline "
events.org" "INBOX")
"* %^{Title}\n%^t--%^= t\n%?")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("m" "Memo" = entry
(file+headline "memo.org" "INBOX")
"* %?\n%T\n")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0("x" "Example" entry
(file+= headline "example.org= " "INBOX")
"* %?\n%^t\n"))))))

Regards,
Daniel

On Sun, 16 Aug 2020 at 12:38, I= hor Radchenko <y= antar92@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.
--000000000000a4065605acfff1fe--