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 SHAmEmxoyl5NfgAA0tVLHw (envelope-from ) for ; Sun, 24 May 2020 12:28:28 +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 0NIcDmxoyl6nTAAAbx9fmQ (envelope-from ) for ; Sun, 24 May 2020 12:28:28 +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 D3909940B2B for ; Sun, 24 May 2020 12:28:27 +0000 (UTC) Received: from localhost ([::1]:56558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcpju-00034Q-SY for larch@yhetil.org; Sun, 24 May 2020 08:28:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcpjH-00030P-EU for emacs-orgmode@gnu.org; Sun, 24 May 2020 08:27:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59959) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcpjH-0004yS-2W; Sun, 24 May 2020 08:27:47 -0400 Received: from [2a01:e35:2fe1:f780:89e5:8450:94dc:1572] (port=45518 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jcpjF-0004RO-FF; Sun, 24 May 2020 08:27:45 -0400 Received: by guerry (Postfix, from userid 1000) id A768A1A603BA; Sun, 24 May 2020 14:27:43 +0200 (CEST) From: Bastien To: Kevin Liu Subject: Re: Bug: org-agenda-finalize throws args-out-of-range [9.3.6 (9.3.6-19-gf360f9-elpaplus @ /home/nivekuil/.emacs.d/elpa/org-plus-contrib-20200302/)] Organization: GNU References: <87d09u9q3c.fsf@nivekuil.com> Date: Sun, 24 May 2020 14:27:43 +0200 In-Reply-To: <87d09u9q3c.fsf@nivekuil.com> (Kevin Liu's message of "Mon, 02 Mar 2020 17:36:39 -0800") Message-ID: <87imglplfk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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.49 X-TUID: xmt7MrGwdjCa Hi Kevin, Kevin Liu writes: > This bit in org-agenda-finalize: > > (save-excursion > (while (org-activate-links (point-max)) > (add-text-properties (match-beginning 0) (match-end 0) > '(face org-link)))) > > Will throw an error at add-text-properties: > > Debugger entered--Lisp error: (args-out-of-range 0 2) > add-text-properties(0 2 (face org-link)) > org-agenda-finalize() > org-agenda-list(nil) > funcall-interactively(org-agenda-list nil) > call-interactively(org-agenda-list) > org-agenda(nil) > funcall-interactively(org-agenda nil) > call-interactively(org-agenda nil nil) > command-execute(org-agenda) FWIW I could not reproduce this bug but the code was wrong indeed, I removed the redundant call to `add-text-properties' in maint. I hope it fixed the problem you had, thanks for reporting it. Best, -- Bastien