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)