From: Noam Postavsky Date: Tue, 24 Jul 2018 22:45:43 +0000 (-0400) Subject: ; bookmark-jump: Add comment about last change. X-Git-Tag: emacs-26.1.90~244 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f00ffe5f6938f851b92dee68787f34358a49426;p=emacs.git ; bookmark-jump: Add comment about last change. --- 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)))