From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: john muhl <jm@pub.pink>
Cc: Eli Zaretskii <eliz@gnu.org>, 74200@debbugs.gnu.org
Subject: bug#74200: [PATCH] Add song viewer to 'mpc'
Date: Thu, 14 Nov 2024 10:45:57 -0500 [thread overview]
Message-ID: <jwvbjyhu8iu.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <875xos6j6q.fsf@pub.pink> (john muhl's message of "Tue, 12 Nov 2024 19:01:17 -0600")
>>> + (select-window (display-buffer buffer '((display-buffer-reuse-window
>>> + display-buffer-same-window)
>>> + (reusable-frames . t)))))))
>>
>> Why use `select-window + display-buffer` instead of `pop-to-buffer`?
>
> Elsewhere I was told not to use pop-to-buffer in new code and I
> believe everything anyone tells me.
Really? AFAIK the one function in that family that's shunned is
`switch-to-buffer` (because its intention is unclear: sometimes it
means "change the content of this window (to that buffer)" and sometimes
it means "display this buffer (in the selected window)"),
Anyway, thanks, installed into `master`.
Stefan
next prev parent reply other threads:[~2024-11-14 15:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 3:26 bug#74200: [PATCH] Add song viewer to 'mpc' john muhl
2024-11-04 3:29 ` john muhl
2024-11-04 12:46 ` Eli Zaretskii
2024-11-04 13:25 ` john muhl
2024-11-08 19:20 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-13 1:01 ` john muhl
2024-11-14 15:45 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-11-14 17:08 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvbjyhu8iu.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=74200@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=jm@pub.pink \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.