From 6f152d8914790f129e9ae42d5c2b4b4c817bf556 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sun, 26 May 2024 17:53:57 +0200 Subject: [PATCH] lisp/org.el (org-mode): Fix thingatpt support for Emacs 27 --- lisp/org.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 656f628ba..7fb2c94bf 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5043,9 +5043,10 @@ The following commands are available: (setq-local buffer-face-mode-face 'org-default) ;; `thing-at-point' support - (setq-local thing-at-point-provider-alist - (cons '(url . org--link-at-point) - thing-at-point-provider-alist)) + (when (boundp 'thing-at-point-provider-alist) + (setq-local thing-at-point-provider-alist + (cons '(url . org--link-at-point) + thing-at-point-provider-alist))) (when (boundp 'forward-thing-provider-alist) (setq-local forward-thing-provider-alist (cons '(url . org-next-link)