[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer
From: |
Juri Linkov |
Subject: |
bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer |
Date: |
Mon, 23 May 2022 10:48:40 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
close 55582 29.0.50
thanks
> 1. emacs -q
> 2. M-: (progn (switch-to-buffer-other-tab "*Messages*") (buffer-name))
> - Actual result: "*GNU Emacs*" in echo area.
> - Expected result: "*Messages*" in echo area.
>
> You can work around it by calling set-buffer right after
> switch-to-buffer-other-tab, but that shouldn't be necessary.
> The other switch-to-buffer-... functions all set the buffer correctly.
Both switch-to-buffer-other-window and switch-to-buffer-other-frame
use pop-to-buffer, but it was unnecessary for switch-to-buffer-other-tab
since it sets the current buffer implicitly afterwards.
But you are right, this causes the problems on a programmatic use
of this command. So now this is fixed in master.