From 807a3b7f98e5c5d059f8ee88c67f1f65c5b42ec6 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Mon, 7 Dec 2020 01:03:26 +0100 Subject: Avoid depending on Emacs 27.1 --- nov.el | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'nov.el') diff --git a/nov.el b/nov.el index 91a26e3..6cad9a5 100644 --- a/nov.el +++ b/nov.el @@ -870,16 +870,15 @@ See also `nov-bookmark-make-record'." :link link :description description)))) -(with-suppressed-warnings ((obsolete org-add-link-type)) - (cond - ((version< org-version "9.0") - (org-add-link-type "nov" 'nov-org-link-follow) - (add-hook 'org-store-link-functions 'nov-org-link-store)) - (t - (org-link-set-parameters - "nov" - :follow 'nov-org-link-follow - :store 'nov-org-link-store)))) +(cond + ((version< org-version "9.0") + (org-add-link-type "nov" 'nov-org-link-follow) + (add-hook 'org-store-link-functions 'nov-org-link-store)) + (t + (org-link-set-parameters + "nov" + :follow 'nov-org-link-follow + :store 'nov-org-link-store))) ;;; Imenu interop -- cgit v1.2.3