From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yBjZIi8zQF/qQwAA0tVLHw (envelope-from ) for ; Fri, 21 Aug 2020 20:48:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EIG0Hi8zQF++OAAA1q6Kng (envelope-from ) for ; Fri, 21 Aug 2020 20:48:47 +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 2DF40940539 for ; Fri, 21 Aug 2020 20:48:47 +0000 (UTC) Received: from localhost ([::1]:35096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9Dxu-0001Pb-2q for larch@yhetil.org; Fri, 21 Aug 2020 16:48:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9DxU-0001MV-CL for emacs-orgmode@gnu.org; Fri, 21 Aug 2020 16:48:20 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:50780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9DxS-0000qI-TJ for emacs-orgmode@gnu.org; Fri, 21 Aug 2020 16:48:20 -0400 Received: by mail-wm1-x334.google.com with SMTP id t2so2840651wma.0 for ; Fri, 21 Aug 2020 13:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:message-id:date:mime-version; bh=UDl4ubYaVNzVgF7Vt2n6leWa13T23eKrl40s7o+5vdo=; b=VAuu91SiNsAFd+nln+Ft/R4A+N15H2M0xLqM9NGeS+DTEkwYC6RGH5zRcA4/OPhd9C kZpwmBVZKMZ3h/m7NZ5nKyQ4PZEgl7HSNKZzkydVZ/Pg8rwUAjzRHhRCNDDOZ/42oZ3j Xo9wNkMx4+utcSZr0I9G4LYTeOyxX+itNmd7joybGgR7hbqw3KYpMwes8QbJCYU32OLa lrBJYGz0eVWKz/JPASfJ3ZiwisgFGk0etDsGXE8KhFC73+Ef7ytoJY14LOyag3Wj8giT GldHoXXAYeCHiduJdQ3aNmv+5RR4izU+wzE7hreJp9VwrLqIIBbdLqPqv/9ZrBz9eE4T DhUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=UDl4ubYaVNzVgF7Vt2n6leWa13T23eKrl40s7o+5vdo=; b=SYxt9i/nCi+hlFBr+gpBao08rrPgSyRTZIGw/LegjsOmcwC7snzA/EsJTk30MckNUf wJXejbyIbnXj7EIIDrNmJI9/a16gXTSXdJnBo5KsQ3ETtHNBiOKUSOqFaYfHcsSau4F5 rKpvJglhliktOs+URelfSswA+85Xv9nLlpQ8F22WaUPy3KQBZYKZ9A+lAP5uWmgL6pPV e8iNWOcJQffJXvD3f9l4nHZthfq6T7zozZD+vdWcsw257mkozwV18AFC5mLks+ZoVKrs mgi45sVAplEVrVANw+On45ShrkehEYvnkeIM8Y8I7P1MYFYuLDx7IhNIMAyJzrRm0hvN iWsA== X-Gm-Message-State: AOAM5339X6CD5iqylatDvqLDrtt0yeChii8kLmvRIFxbOdqBQNvudC7F ZAjDRUNJE/H/uRFIRL6k9AyHk+AfXuE= X-Google-Smtp-Source: ABdhPJyV1QWo+EL+WvlE8OUsmWo5035tXRxJVD3vLmbxEOhMvL4a7bTVEtowBgo3XU/bSabz0/rmqQ== X-Received: by 2002:a1c:e917:: with SMTP id q23mr5217192wmc.125.1598042896620; Fri, 21 Aug 2020 13:48:16 -0700 (PDT) Received: from thinkpad.gmail.com (cpc105068-sgyl40-2-0-cust884.18-2.cable.virginm.net. [82.2.43.117]) by smtp.gmail.com with ESMTPSA id d7sm6870937wra.29.2020.08.21.13.48.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Aug 2020 13:48:15 -0700 (PDT) User-agent: mu4e 1.5.5; emacs 27.1 From: Al Haji-Ali To: emacs-orgmode@gnu.org Subject: Bug: Infinite loop in org-agenda-dim-blocked-tasks Message-ID: <87pn7jraid.fsf@gmail.com> Date: Fri, 21 Aug 2020 21:48:14 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=abdo.haji.ali@gmail.com; helo=mail-wm1-x334.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, 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=VAuu91Si; 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.71 X-TUID: dCIqeZfvTodr 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, x8664-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-08-21