From: Al Haji-Ali <abdo.haji.ali@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Infinite loop in org-agenda-dim-blocked-tasks
Date: Fri, 21 Aug 2020 21:48:14 +0100 [thread overview]
Message-ID: <87pn7jraid.fsf@gmail.com> (raw)
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
next reply other threads:[~2020-08-21 20:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 20:48 Al Haji-Ali [this message]
2020-09-04 10:05 ` Bug: Infinite loop in org-agenda-dim-blocked-tasks Bastien
2021-05-11 1:38 ` Aaron L. Zeng
2021-05-11 1:33 Aaron Zeng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pn7jraid.fsf@gmail.com \
--to=abdo.haji.ali@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).