From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Hori Newsgroups: gmane.emacs.help Subject: Re: Changing the current buffer on a minibuffer-only frame Date: Fri, 15 Oct 2010 10:26:42 -0700 Message-ID: References: <4CB7F61C.3030104@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287165068 1953 80.91.229.12 (15 Oct 2010 17:51:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 17:51:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: martin rudalics Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 19:51:07 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6oQr-0001Tf-9E for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 19:51:05 +0200 Original-Received: from localhost ([127.0.0.1]:35763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6oQq-0001fo-JL for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 13:51:04 -0400 Original-Received: from [140.186.70.92] (port=38228 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6oB3-0000JW-N2 for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 13:34:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6oAy-0002xU-5s for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 13:34:45 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:33096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6oAy-0002wz-0S for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 13:34:40 -0400 Original-Received: by fxm2 with SMTP id 2so758492fxm.0 for ; Fri, 15 Oct 2010 10:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3BCduQFfvv67VvoFf9F2qA186GsK0w//Ram88ZRKGa4=; b=ewvKxFUzM3i+lqKNpQ85EWSzmuV06n3opIpq9nqyyC6n+Ae+CVZQ3EVzKejOa1243k Xo/oJdqil4Np5Xh5xbwwmfFATaL5e+3Ztknn7fD2nDjrmamoLzdDSm8u1COmc4sePPqp ikESY1j2lcR+3WLl9Rzn2HusP0mqwJYVnFHFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LsdWDWzWnVW7/ip32el8sLdFWFze+qki8gklhJi/oEzgB49IK5ve4Y8NxOnJ5aeMeW Tg9/Dd4WMZNGLz2+4YdyA0RxCm7cQ7hcesGmFurmnwaOf/g4KkIRPbyu9VB/do2K7Wrp Q+Fp8eqcViKrxpkbTeQBcJD7nUGDyPqrq1cQE= Original-Received: by 10.216.232.229 with SMTP id n79mr1146677weq.52.1287163602827; Fri, 15 Oct 2010 10:26:42 -0700 (PDT) Original-Received: by 10.216.50.209 with HTTP; Fri, 15 Oct 2010 10:26:42 -0700 (PDT) In-Reply-To: <4CB7F61C.3030104@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75136 Archived-At: That did it. Thanks for the code, Martin. On Thu, Oct 14, 2010 at 11:35 PM, martin rudalics 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)) > =A0 =A0 =A0 (window (frame-root-window frame))) > =A0(set-window-buffer window "*Messages*")) > > what you want? > > martin >