From: "Drew Adams" <drew.adams@oracle.com>
To: "'martin rudalics'" <rudalics@gmx.at>, <4293@emacsbugs.donarmstrong.com>
Subject: bug#4293: 23.1; use pop-to-buffer, not switch...other-window, in bookmark.el
Date: Wed, 2 Sep 2009 07:39:10 -0700 [thread overview]
Message-ID: <0EDDA64C33FD4884B064564DC880B5F3@us.oracle.com> (raw)
In-Reply-To: <4A9E41E3.1000201@gmx.at>
> > In bookmark-jump-other-window and bookmark-bmenu-other-window we call
> > switch-to-buffer-other-window. We should use pop-to-buffer, instead.
> >
> > With non-nil pop-up-frames, switch-to-buffer-other-window creates a
> > new frame each time, even if the destination buffer is
> > already showing in some frame. pop-to-buffer DTRT: it reuses
> > the existing frame.
>
> I'm not sure what the problem is here.
> `switch-to-buffer-other-window'
> has a clear purpose - do _not reuse the selected window_ (which is the
> bookmarks window, IIUC). OTOH `display-buffer-reuse-frames' non-nil
> should assure that another frame is reused.
Users should not have to customize a global variable, to prevent a new frame
from being used in particular places like this.
As Stefan says repeatedly (paraphrasing), switch-to-buffer-other-window is
almost always the wrong thing to do, and should be replaced in most places by
pop-to-buffer.
Use of switch-to-buffer-other-window is a bug in general, typically made by
someone who doesn't use non-nil pop-up-frames.
In this particular context, there is no reason to use
switch-to-buffer-other-frame.
next prev parent reply other threads:[~2009-09-02 14:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87skdymwe0.fsf@red-bean.com>
2009-08-30 14:52 ` bug#4293: 23.1; use pop-to-buffer, not switch...other-window, in bookmark.el Drew Adams
2009-09-02 9:58 ` martin rudalics
2009-09-02 14:39 ` Drew Adams [this message]
2009-09-02 15:47 ` martin rudalics
2009-09-02 16:16 ` Drew Adams
2009-09-02 16:45 ` martin rudalics
2009-09-02 17:56 ` Drew Adams
2009-09-02 21:22 ` Stefan Monnier
2009-09-02 21:29 ` Drew Adams
2009-10-05 2:10 ` bug#4293: marked as done (23.1; use pop-to-buffer, not switch...other-window, in bookmark.el) Emacs bug Tracking System
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=0EDDA64C33FD4884B064564DC880B5F3@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=4293@emacsbugs.donarmstrong.com \
--cc=rudalics@gmx.at \
/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).