bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31751: 26.1; Window-point inflicts bookmark-jump


From: Noam Postavsky
Subject: bug#31751: 26.1; Window-point inflicts bookmark-jump
Date: Tue, 24 Jul 2018 08:56:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

tags 31751 fixed
close 31751 26.2
quit

Dmitri Paduchikh <dpaduchikh@gmail.com> writes:

> In 26.1 switch-to-buffer by default prefers window-point. buffer-jump by
> default uses switch-to-buffer and therefore also prefers window-point to
> bookmark position which is wrong. The solution is suggested in NEWS:
>
>> ** 'switch-to-buffer-preserve-window-point' now defaults to t.
>> Applications that call 'switch-to-buffer' and want to show the buffer at
>> the position of its point should use 'pop-to-buffer-same-window' in lieu
>> of 'switch-to-buffer'.
>
> Recipe to reproduce: open a file, set bookmark, move point to some other
> position, switch to some other buffer, and jump to the set bookmark.

I changed it to use pop-to-buffer-same-window as suggested in NEWS.

[1: f64c2774e9]: 2018-07-23 22:07:14 -0400
  Let bookmark-jump override window-point (Bug#31751)
  
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=f64c2774e96c755a5fddcbc49db65dcc3fcb9323





reply via email to

[Prev in Thread] Current Thread [Next in Thread]