From: Eshel Yaron Date: Mon, 8 Jul 2024 20:33:55 +0000 (+0200) Subject: ; * lisp/bookmark.el (bookmark-jump): Remove outdated workaround X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5b48a6e491c270f0b56509f4b0301c7623dc172d;p=emacs.git ; * lisp/bookmark.el (bookmark-jump): Remove outdated workaround --- 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)