branch: externals-release/org
commit c45a0589287fee12a3289cfc1b35708de97a1c05
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    org-follow-timestamp-link: Fix when org-agenda is not yet loaded
    
    * lisp/org.el (org-follow-timestamp-link): Explicitly require
    org-agenda.
    
    Reported-by: Michael Maurer <maurer.mich...@gmail.com>
    Link: 
https://orgmode.org/list/cah-0+bbayewlkq3xvuuo+qixdwqc+9jb0d2y9nti-a5uvnz...@mail.gmail.com
---
 lisp/org.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/org.el b/lisp/org.el
index 153e860f9a..1b829d837c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8608,6 +8608,7 @@ or to another Org file, automatically push the old 
position onto the ring."
 (defvar org-agenda-buffer-name)
 (defun org-follow-timestamp-link ()
   "Open an agenda view for the time-stamp date/range at point."
+  (require 'org-agenda)
   ;; Avoid changing the global value.
   (let ((org-agenda-buffer-name org-agenda-buffer-name))
     (cond

Reply via email to