]> git.eshelyaron.com Git - emacs.git/commit
Make 'clone-indirect-buffer-other-window' use other window
authorRichard Sent <richard@freakingpenguin.com>
Mon, 27 May 2024 15:32:00 +0000 (11:32 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 8 Jun 2024 13:01:07 +0000 (15:01 +0200)
commit4340714c2402632030c08c86f786fbf213c6c906
tree491cacc1a36668c7890f30fd3595b156b8a0906a
parent244d99b1e0b774c01d8990fc564a6096c1dd709e
Make 'clone-indirect-buffer-other-window' use other window

Previously, depending on the settings in 'display-buffer-alist',
'clone-indirect-buffer-other-window' would display the cloned
buffer in the original window, behaving identically to
'clone-indirect-buffer' with a non-nil display-flag.  This
behavior was inconsistent with other-window commands which
always used another window.
Now, 'clone-indirect-buffer-other-window' uses
'switch-to-buffer-other-window'.  This means it uses the same
logic as other-window commands like 'find-file-other-window'
and 'info-other-window'.
display-flag was kept for API stability and functional
compatibility reasons.
* lisp/simple.el: (clone-indirect-buffer-other-window): Use
switch-to-buffer-other-window.  (Bug#70819)

(cherry picked from commit 579aaa1ec24b0bd139053919cc87b493773248ce)
lisp/simple.el