aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2020-12-07 01:03:26 +0100
committerVasilij Schneidermann <mail@vasilij.de>2020-12-07 01:03:26 +0100
commit807a3b7f98e5c5d059f8ee88c67f1f65c5b42ec6 (patch)
treef29d44a6294d347090b5848707165335841348ac
parent7a5e98f9bae6ad690962580eca8369930fa0c706 (diff)
Avoid depending on Emacs 27.1
-rw-r--r--nov.el19
1 files changed, 9 insertions, 10 deletions
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