* bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer
@ 2022-05-22 19:44 Sean Whitton
2022-05-23 2:22 ` Eli Zaretskii
2022-05-23 7:48 ` Juri Linkov
0 siblings, 2 replies; 4+ messages in thread
From: Sean Whitton @ 2022-05-22 19:44 UTC (permalink / raw)
To: 55582; +Cc: juri
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.
--
Sean Whitton
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer
2022-05-22 19:44 bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer Sean Whitton
@ 2022-05-23 2:22 ` Eli Zaretskii
2022-05-23 4:50 ` Sean Whitton
2022-05-23 7:48 ` Juri Linkov
1 sibling, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2022-05-23 2:22 UTC (permalink / raw)
To: Sean Whitton; +Cc: juri, 55582
> Cc: juri@jurta.org
> From: Sean Whitton <spwhitton@spwhitton.name>
> Date: Sun, 22 May 2022 12:44:42 -0700
>
> 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.
Can you explain why you expected to see "*Messages*" in this case?
What kind of documentation says this is what should happen?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer
2022-05-23 2:22 ` Eli Zaretskii
@ 2022-05-23 4:50 ` Sean Whitton
0 siblings, 0 replies; 4+ messages in thread
From: Sean Whitton @ 2022-05-23 4:50 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: juri, 55582
Hello,
On Mon 23 May 2022 at 05:22am +03, Eli Zaretskii wrote:
>> Cc: juri@jurta.org
>> From: Sean Whitton <spwhitton@spwhitton.name>
>> Date: Sun, 22 May 2022 12:44:42 -0700
>>
>> 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.
>
> Can you explain why you expected to see "*Messages*" in this case?
All the other pop-to-* and switch-to-* functions set the buffer, and the
language "switch to buffer" in Emacs includes making the target buffer
current.
I can't see any reason why switch-to-buffer-other-tab should be
different from its fellows.
> What kind of documentation says this is what should happen?
The documentation for switch-to-buffer-other-tab says that it is "Like
C-x 5 b", and switch-to-buffer-other-frame makes the target buffer
current.
--
Sean Whitton
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer
2022-05-22 19:44 bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer Sean Whitton
2022-05-23 2:22 ` Eli Zaretskii
@ 2022-05-23 7:48 ` Juri Linkov
1 sibling, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2022-05-23 7:48 UTC (permalink / raw)
To: Sean Whitton; +Cc: 55582
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-23 7:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-22 19:44 bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer Sean Whitton
2022-05-23 2:22 ` Eli Zaretskii
2022-05-23 4:50 ` Sean Whitton
2022-05-23 7:48 ` Juri Linkov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).