From 2f00ffe5f6938f851b92dee68787f34358a49426 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Tue, 24 Jul 2018 18:45:43 -0400 Subject: [PATCH] ; bookmark-jump: Add comment about last change. --- lisp/bookmark.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 9299ab8850f..464324cea01 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1110,6 +1110,9 @@ DISPLAY-FUNC would be `switch-to-buffer-other-window'." (unless bookmark (error "No bookmark specified")) (bookmark-maybe-historicize-string bookmark) + ;; 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))) -- 2.39.2