unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Changing the current buffer on a minibuffer-only frame
@ 2010-10-15  3:42 Ken Hori
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Hori @ 2010-10-15  3:42 UTC (permalink / raw)
  To: Emacs mailing list

A minibuffer-only frame, e.g. (make-initial-minibuffer-frame
nil), selects the displayed buffer on a caller window as the
default buffer on the newly-created frame. I am unaware of any
way to specify or change an arbitrary buffer for this frame.

Is there anyone who knows how to do so?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Changing the current buffer on a minibuffer-only frame
@ 2010-10-15  6:35 martin rudalics
  2010-10-15 17:26 ` Ken Hori
  0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2010-10-15  6:35 UTC (permalink / raw)
  To: fplemma; +Cc: help-gnu-emacs

 > A minibuffer-only frame, e.g. (make-initial-minibuffer-frame
 > nil), selects the displayed buffer on a caller window as the
 > default buffer on the newly-created frame. I am unaware of any
 > way to specify or change an arbitrary buffer for this frame.

Is something like

(let* ((frame (make-initial-minibuffer-frame nil))
        (window (frame-root-window frame)))
   (set-window-buffer window "*Messages*"))

what you want?

martin



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Changing the current buffer on a minibuffer-only frame
  2010-10-15  6:35 Changing the current buffer on a minibuffer-only frame martin rudalics
@ 2010-10-15 17:26 ` Ken Hori
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Hori @ 2010-10-15 17:26 UTC (permalink / raw)
  To: martin rudalics; +Cc: help-gnu-emacs

That did it. Thanks for the code, Martin.

On Thu, Oct 14, 2010 at 11:35 PM, martin rudalics <rudalics@gmx.at> wrote:
>> A minibuffer-only frame, e.g. (make-initial-minibuffer-frame
>> nil), selects the displayed buffer on a caller window as the
>> default buffer on the newly-created frame. I am unaware of any
>> way to specify or change an arbitrary buffer for this frame.
>
> Is something like
>
> (let* ((frame (make-initial-minibuffer-frame nil))
>       (window (frame-root-window frame)))
>  (set-window-buffer window "*Messages*"))
>
> what you want?
>
> martin
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-15 17:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15  6:35 Changing the current buffer on a minibuffer-only frame martin rudalics
2010-10-15 17:26 ` Ken Hori
  -- strict thread matches above, loose matches on Subject: below --
2010-10-15  3:42 Ken Hori

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).