]> git.eshelyaron.com Git - emacs.git/commit
Fix a bug in 'switch-to-buffer'
authorMartin Rudalics <rudalics@gmx.at>
Sun, 23 Jun 2024 08:26:57 +0000 (10:26 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 24 Jun 2024 07:07:20 +0000 (09:07 +0200)
commitc3d3f5fe6b4ffb32ccd846ec8031859a960e50d9
treeefe3729cd0ee60f1637a5ae23b15a5f0b6e4d410
parent0b10c67e85777260c7b375991a99be05c4c9c9f6
Fix a bug in 'switch-to-buffer'

* lisp/window.el (switch-to-buffer): When asked to switch to the
buffer of the selected window,
'switch-to-buffer-obey-display-actions' is non-nil and
'pop-to-buffer' uses the selected window, don't try to restore
window start and point from 'window-prev-buffers' (Bug#71616).

(cherry picked from commit 5f8a9cd4b6f4441c158a750ad7c5b937b559edd4)
lisp/window.el