diff options
author | Noam Postavsky <npostavs@gmail.com> | 2018-07-24 18:45:43 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2018-07-24 20:13:55 -0400 |
commit | 2f00ffe5f6938f851b92dee68787f34358a49426 (patch) | |
tree | 7cb544e30857645910c42b2d84628163a3eb1ba4 /lisp/bookmark.el | |
parent | f64c2774e96c755a5fddcbc49db65dcc3fcb9323 (diff) | |
download | emacs-2f00ffe5f6938f851b92dee68787f34358a49426.tar.gz |
; bookmark-jump: Add comment about last change.
Diffstat (limited to 'lisp/bookmark.el')
-rw-r--r-- | lisp/bookmark.el | 3 |
1 files changed, 3 insertions, 0 deletions
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))) |