From 89947f5152afecb276010fa52fa025a2bb63b66f Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Tue, 2 Feb 2021 16:35:48 +0100 Subject: [PATCH] Remove Emacs 21 compat code for bookmark-after-jump-hook * lisp/org-compat.el (bookmark-after-jump-hook): Remove Emacs 21 compat code. --- lisp/org-compat.el | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 88bf21b6a..8cbf33137 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -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 -- 2.29.2