From: Drew Adams <drew.adams@oracle.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 8876-done@debbugs.gnu.org
Subject: bug#8876: 24.0.50; making `menu-bar-update-buffers' use another frame
Date: Mon, 17 Jun 2013 09:26:33 -0700 (PDT) [thread overview]
Message-ID: <9e1f230a-090d-4aa1-854e-226a12ea5077@default> (raw)
In-Reply-To: <878v28rb8d.fsf@web.de>
> > But that is not compatible with the latest `pop-to-buffer'.
> > And when I look at the doc for `pop-to-buffer' I keel over.
> >
> > It tells me I can use an ACTION argument (as Martin did here,
> > with value `other-frame'). But it sends me off to the doc for
> > `display-buffer', whose description of parameter ACTION is
> > incomprehensible to me. WAY too complicated.
>
> I made the same experience.
Thanks for confirming I am not alone. I doubt that we two are alone.
> Now, a good and detailed description is given in the manual
> under (elisp) Display Action Functions. IMHO it's
> understandable.
Yes, it helps, but this is all still way too complicated, AFAICT.
That node should be xref'd from the `display-buffer' doc string,
or the same info should be added to the doc string. Without such
info, you really haven't a clue what the ACTION parameter is all
about.
And it should be made clear in that node that the action functions
described there correspond to the car of the ACTION parameter for
`display-buffer" (and `pop-to-buffer'). This connection is currently
not being made.
The node title says that these are action functions for
`display-buffer', but it should be pointed out that they are used
in the car of the ACTION parameter.
Anyway, I guess the answer to my question is more or less this:
(pop-to-buffer my-buffer '(display-buffer-pop-up-frame))
Ah, alas, no. That creates a new frame instead of reusing an existing
frame. And that is true regardless of the value of `pop-up-frames'.
And that's a lot less handy than just (pop-to-buffer 'other-frame).
And it is even less succinct than this (which still works, thank
goodness):
(let ((pop-up-frames t)) (pop-to-buffer mybuf))
And the latter has the advantage that it does reuse an existing frame,
rather than creating a duplicate one. `pop-to-buffer' has previously
preferred an existing frame/window. Now it eagerly creates new ones?
Still not clear to me. Still seems WAY overengineered, to me.
I do appreciate the goal of providing more fine-grained control over
buffer display. But the result, at least for my use case (separate
frames a lot of the time) seems to be imposed extra complication.
The fine-grained control should be available, but should not be in
your face. You should not be required to twiddle fine-tuning knobs
to get simple behavior, especially simple behavior that has been
availablein the past in a simple way.
IOW, it seems that we have thrown out the baby with the bathwater.
prev parent reply other threads:[~2013-06-17 16:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 22:06 bug#8876: 24.0.50; making `menu-bar-update-buffers' use another frame Drew Adams
2011-06-16 1:00 ` Stefan Monnier
2011-06-16 2:24 ` Drew Adams
2011-06-16 13:47 ` Stefan Monnier
2011-06-17 14:48 ` Drew Adams
2011-06-21 1:49 ` Stefan Monnier
2011-06-21 1:50 ` Stefan Monnier
[not found] ` <<jwv4o3kgdgp.fsf-monnier+emacs@gnu.org>
2013-06-17 14:34 ` Drew Adams
2013-06-17 15:46 ` Michael Heerdegen
2013-06-17 16:26 ` Drew Adams [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=9e1f230a-090d-4aa1-854e-226a12ea5077@default \
--to=drew.adams@oracle.com \
--cc=8876-done@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
/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).