summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2021-08-18 23:16:37 +1000
committerYuchen Pei <me@ypei.me>2021-08-18 23:16:37 +1000
commita25b3fdde789ec6bc310cca66853286d8e8b6cb2 (patch)
tree65d43b58cec919cd511ea7da92fc3744ba6196cf
parentaebe30cf35d181214edd490f613501f41a1502f6 (diff)
Adding a helpful error message when the org version is likely old.
-rw-r--r--rt-liberation-org.el10
1 files changed, 6 insertions, 4 deletions
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 <yrk@gnu.org>
;; 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)