unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: 55582@debbugs.gnu.org
Subject: bug#55582: 29.1; switch-to-buffer-other-tab doesn't set the buffer
Date: Mon, 23 May 2022 10:48:40 +0300	[thread overview]
Message-ID: <86v8tw1yg7.fsf@mail.linkov.net> (raw)
In-Reply-To: <87czg5xsgl.fsf@athena.silentflame.com> (Sean Whitton's message of "Sun, 22 May 2022 12:44:42 -0700")

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.





      parent reply	other threads:[~2022-05-23  7:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86v8tw1yg7.fsf@mail.linkov.net \
    --to=juri@jurta.org \
    --cc=55582@debbugs.gnu.org \
    --cc=spwhitton@spwhitton.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).