From 5b48a6e491c270f0b56509f4b0301c7623dc172d Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Mon, 8 Jul 2024 22:33:55 +0200 Subject: [PATCH] ; * lisp/bookmark.el (bookmark-jump): Remove outdated workaround --- lisp/bookmark.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 50767fce671..6faaeba009e 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1318,17 +1318,13 @@ BOOKMARK is usually a bookmark name (a string). It can also be a bookmark record, but this is usually only done by programmatic callers. If DISPLAY-FUNC is non-nil, it is a function to invoke to display the -bookmark. It defaults to `pop-to-buffer-same-window'. A typical value for +bookmark. It defaults to `switch-to-buffer'. A typical value for DISPLAY-FUNC would be `switch-to-buffer-other-window'." (interactive (list (bookmark-completing-read "Jump to bookmark" bookmark-current-bookmark))) - (unless bookmark - (error "No bookmark specified")) - ;; Don't use `switch-to-buffer' because it would let the - ;; window-point override the bookmark's point when - ;; `switch-to-buffer-preserve-window-point' is non-nil. - (bookmark--jump-via bookmark (or display-func 'pop-to-buffer-same-window))) + (unless bookmark (error "No bookmark specified")) + (bookmark--jump-via bookmark (or display-func 'switch-to-buffer))) (put 'bookmark-jump 'minibuffer-action 'bookmark-display) -- 2.39.2