]> git.eshelyaron.com Git - emacs.git/commitdiff
; bookmark-jump: Add comment about last change.
authorNoam Postavsky <npostavs@gmail.com>
Tue, 24 Jul 2018 22:45:43 +0000 (18:45 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 25 Jul 2018 00:13:55 +0000 (20:13 -0400)
lisp/bookmark.el

index 9299ab8850ff96cdb6b1a1ecf0734b8ea271045d..464324cea0126598890ec64e2b1682e66ab174e9 100644 (file)
@@ -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)))