* Bug: Infinite loop in org-agenda-dim-blocked-tasks
@ 2020-08-21 20:48 Al Haji-Ali
2020-09-04 10:05 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Al Haji-Ali @ 2020-08-21 20:48 UTC (permalink / raw)
To: emacs-orgmode
On the latest release (9.3.7), I am running into an infinite loop when clocking in a blocked task if `org-enforce-todo-dependencies` is set to `t`.
The (manual) call stack is:
org-agenda-clock-in
org-agenda.el:9760 org-agenda-change-all-lines
org-agenda.el:9391 org-agenda-finalize
org-agenda.el:3879 org-agenda-dim-blocked-tasks
The while loop on line 4012 is infinite in this case.
The problem is because when `org-agenda-finalize` is called, the region is narrowed to a single line. Then in `org-agenda-dim-blocked-tasks` the function `(move-beginning-of-line 2)` is called to advance the point, which does not work when the buffer has a single line.
In an earlier version, the command `(forward-line)` was called which moved the point to eol when the buffer had a single line.
-- Al
Emacs : GNU Emacs 27.1 (build 4, x86<sub>64</sub>-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10)
of 2020-08-21
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Infinite loop in org-agenda-dim-blocked-tasks
2020-08-21 20:48 Bug: Infinite loop in org-agenda-dim-blocked-tasks Al Haji-Ali
@ 2020-09-04 10:05 ` Bastien
2021-05-11 1:38 ` Aaron L. Zeng
0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2020-09-04 10:05 UTC (permalink / raw)
To: Al Haji-Ali; +Cc: emacs-orgmode
Hi,
Al Haji-Ali <abdo.haji.ali@gmail.com> writes:
> On the latest release (9.3.7), I am running into an infinite loop when
> clocking in a blocked task if `org-enforce-todo-dependencies` is set
> to `t`.
From memory, this has been fixed in the master branch.
If you can check from there and confirm the fix, that'd be great,
otherwise just wait for the 9.4 release.
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Infinite loop in org-agenda-dim-blocked-tasks
@ 2021-05-11 1:33 Aaron Zeng
0 siblings, 0 replies; 4+ messages in thread
From: Aaron Zeng @ 2021-05-11 1:33 UTC (permalink / raw)
To: bzg; +Cc: emacs-orgmode, abdo.haji.ali
Hi Bastien,
Unfortunately, I think this bug is still there (I also didn't see any
commits addressing it, but I could have missed it in the log
somewhere). I tried the master branch but was still able to reproduce
the bug using `emacs -q -L ~/src/org-mode/lisp`:
After using `customize-set-variable` to enable
org-enforce-todo-checkbox-dependencies, with the following agenda
file:
* TODO blocked task
- [ ] checkbox
Trying to clock into the task from org-todo-list results in an infinite loop.
Thanks,
Aaron
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Infinite loop in org-agenda-dim-blocked-tasks
2020-09-04 10:05 ` Bastien
@ 2021-05-11 1:38 ` Aaron L. Zeng
0 siblings, 0 replies; 4+ messages in thread
From: Aaron L. Zeng @ 2021-05-11 1:38 UTC (permalink / raw)
To: bzg; +Cc: emacs-orgmode, abdo.haji.ali
(Sorry, I am resending this email because I found out gmail doesn't support
In-Reply-To in mailto: links).
Unfortunately, I think this bug is still there (I also didn't see any
commits addressing it, but I could have missed it in the log
somewhere). I tried the master branch but was still able to reproduce
the bug using `emacs -q -L ~/src/org-mode/lisp`:
After using `customize-set-variable` to enable
org-enforce-todo-checkbox-dependencies, with the following agenda
file:
* TODO blocked task
- [ ] checkbox
Trying to clock into the task from org-todo-list results in an infinite loop.
Thanks,
Aaron
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-11 1:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-21 20:48 Bug: Infinite loop in org-agenda-dim-blocked-tasks Al Haji-Ali
2020-09-04 10:05 ` Bastien
2021-05-11 1:38 ` Aaron L. Zeng
-- strict thread matches above, loose matches on Subject: below --
2021-05-11 1:33 Aaron Zeng
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).