Remove Emacs 21 compat code for bookmark-after-jump-hook

* lisp/org-compat.el (bookmark-after-jump-hook): Remove Emacs 21
compat code.
This commit is contained in:
Stefan Kangas 2021-02-02 16:35:48 +01:00 committed by Kyle Meyer
parent 3e64d3475d
commit 2ed1c20ff7
1 changed files with 1 additions and 8 deletions

View File

@ -1104,14 +1104,7 @@ ELEMENT is the element at point."
(org-show-context 'bookmark-jump)))
;; Make `bookmark-jump' shows the jump location if it was hidden.
(eval-after-load 'bookmark
'(if (boundp 'bookmark-after-jump-hook)
;; We can use the hook
(add-hook 'bookmark-after-jump-hook 'org-bookmark-jump-unhide)
;; Hook not available, use advice
(defadvice bookmark-jump (after org-make-visible activate)
"Make the position visible."
(org-bookmark-jump-unhide))))
(add-hook 'bookmark-after-jump-hook 'org-bookmark-jump-unhide)
;;;; Calendar