From a25b3fdde789ec6bc310cca66853286d8e8b6cb2 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 18 Aug 2021 23:16:37 +1000 Subject: Adding a helpful error message when the org version is likely old. --- rt-liberation-org.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'rt-liberation-org.el') diff --git a/rt-liberation-org.el b/rt-liberation-org.el index 2119551..0259061 100644 --- a/rt-liberation-org.el +++ b/rt-liberation-org.el @@ -7,7 +7,7 @@ ;; Maintainer: Yoni Rabkin ;; This file is a part of rt-liberation. - + ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation; either version 3 of the @@ -57,9 +57,11 @@ :description subject) link)))) -(org-link-set-parameters "rt" - :follow #'rt-org-open - :store #'rt-org-store-link) +(if (fboundp 'org-link-set-parameters) + (org-link-set-parameters "rt" + :follow #'rt-org-open + :store #'rt-org-store-link) + (error "org-link-set-parameters is void. Are you using an old version of Org?")) ;;; _ (provide 'rt-liberation-org) -- cgit v1.2.3