From 5d9c9c27c68f1af1159dfeb62352b2fa610b1d9f Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 18 Jan 2023 11:52:08 +0300 Subject: [PATCH] * lisp/org-agenda.el: require 'org-element Load org-element for agenda instead of relying on org-element being loaded when agenda is ran. Reported-by: zimoun Link: https://orgmode.org/list/86r0vszn3w.fsf@gmail.com --- lisp/org-agenda.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index b5f0ab138..2d194ad34 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -54,6 +54,7 @@ (require 'org) (require 'org-macs) (require 'org-refile) +(require 'org-element) (declare-function diary-add-to-list "diary-lib" (date string specifier &optional marker globcolor literal)) @@ -80,11 +81,6 @@ (declare-function org-columns-quit "org-colview" ()) (declare-function diary-date-display-form "diary-lib" (&optional type)) (declare-function org-mobile-write-agenda-for-mobile "org-mobile" (file)) -(declare-function org-element-property "org-element" (property element)) -(declare-function org-element--cache-active-p "org-element" - (&optional called-from-cache-change-func-p)) -(declare-function org-element-lineage "org-element" - (datum &optional types with-self)) (declare-function org-habit-insert-consistency-graphs "org-habit" (&optional line)) (declare-function org-is-habit-p "org-habit" (&optional pom)) @@ -95,8 +91,6 @@ (declare-function org-capture "org-capture" (&optional goto keys)) (declare-function org-clock-modify-effort-estimate "org-clock" (&optional value)) -(declare-function org-element-type "org-element" (&optional element)) - (defvar calendar-mode-map) (defvar org-clock-current-task) (defvar org-current-tag-alist)