From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Liu Subject: 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/)] Date: Mon, 02 Mar 2020 17:36:39 -0800 Message-ID: <87d09u9q3c.fsf@nivekuil.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50885) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8wUM-0003tH-Pf for emacs-orgmode@gnu.org; Mon, 02 Mar 2020 20:36:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8wUL-0000ed-Dc for emacs-orgmode@gnu.org; Mon, 02 Mar 2020 20:36:50 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21119) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j8wUL-0000bd-5O for emacs-orgmode@gnu.org; Mon, 02 Mar 2020 20:36:49 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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) This happens after I open the agenda, C-c C-o a captured file from my org-journal, and then open the agenda again. The effect is that subsequent links after the first are not styled (visible brackets, not a link). However, it seems like add-text-properties may be redundant, and org-activate-links does it already? I deleted the add-text-properties sexp entirely and it seems to work as expected. Emacs : GNU Emacs 27.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.14, cairo version 1.17.3) of 2020-02-24 Package: Org mode version 9.3.6 (9.3.6-19-gf360f9-elpaplus @ /home/nivekuil/.emacs.d/elpa/org-plus-contrib-20200302/)