From: Drew Adams <drew.adams@oracle.com>
To: 8876-done@debbugs.gnu.org
Subject: bug#8876: 24.0.50; making `menu-bar-update-buffers' use another frame
Date: Mon, 17 Jun 2013 07:34:45 -0700 (PDT) [thread overview]
Message-ID: <88e3bec9-73e5-49d9-8afe-64b237c09f60@default> (raw)
In-Reply-To: <<jwv4o3kgdgp.fsf-monnier+emacs@gnu.org>>
Sending again, since the bug was archived (apparently replying to
the thread sends your reply to /dev/null if a bug has been archived -
quite a feature!).
--------------------------------------------------------
> > Attached. Changelog entry:
> Thanks, installed,
Well, that only took things so far. At the time I did that, Martin
had defined `pop-to-buffer-other-frame' in his version of window.el,
which I was using as a fix for another bug (since fixed). That code
never made it into window.el, however.
So I guess it is not so easy now to assign `pop-to-buffer-other-frame'
to `menu-bar-select-buffer-function', i.e., to make it pop to the
buffer in another frame.
This was Martin's definition, at the time:
(defsubst pop-to-buffer-other-frame
(&optional buffer-or-name norecord label)
"Pop to buffer specified by BUFFER-OR-NAME on another frame.
The selected frame will be used only if there's no other choice.
Optional arguments BUFFER-OR-NAME, NORECORD and LABEL are as for
`pop-to-buffer'."
(interactive "BPop to buffer on another frame:\nP")
(pop-to-buffer buffer-or-name 'other-frame norecord label))
(I would not use a defsubst.)
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.
Can you please tell me what (simple) ACTION argument to pass to
`pop-to-buffer' to get it to use another frame? The doc does not
make it sound like simply `other-frame' will suffice. ;-)
This is the function I'm using so far, with `pop-up-frames':
(lambda (buffer &optional other-window norecord)
(interactive "BPop to buffer on another frame:\nP")
(let ((pop-up-frames t))
(pop-to-buffer buffer other-window norecord)))
Is there a different simple way to do this now? Hope so.
Thx.
next prev parent reply other threads:[~2013-06-17 14:34 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 [this message]
2013-06-17 15:46 ` Michael Heerdegen
2013-06-17 16:26 ` Drew Adams
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=88e3bec9-73e5-49d9-8afe-64b237c09f60@default \
--to=drew.adams@oracle.com \
--cc=8876-done@debbugs.gnu.org \
/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).