From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Mon, 1 Jul 2013 16:40:22 +0200 Message-ID: References: <51C5AA68.4000204@alice.it> <2FB4C583-960C-4DA8-8B2E-29DF8D96770E@swipnet.se> <51CD6324.2040504@gmx.at> <834ncifkq9.fsf@gnu.org> <83zjuae19s.fsf@gnu.org> <83r4fmdsw5.fsf@gnu.org> <85k3ldtion.fsf@member.fsf.org> <4E4C522D-DBCC-4133-A764-82C9CCE81E2D@swipnet.se> <8913208E-7FE2-41F5-AC93-000108413C47@swipnet.se> <51D126A4.50402@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1372689672 8136 80.91.229.3 (1 Jul 2013 14:41:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jul 2013 14:41:12 +0000 (UTC) Cc: martin rudalics , Emacs developers To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 01 16:41:14 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UtfI1-0003M3-Hw for ged-emacs-devel@m.gmane.org; Mon, 01 Jul 2013 16:41:13 +0200 Original-Received: from localhost ([::1]:55851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtfI1-00012q-7J for ged-emacs-devel@m.gmane.org; Mon, 01 Jul 2013 10:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtfHw-00012k-Ua for emacs-devel@gnu.org; Mon, 01 Jul 2013 10:41:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtfHv-0006QB-3q for emacs-devel@gnu.org; Mon, 01 Jul 2013 10:41:08 -0400 Original-Received: from mail-ie0-x235.google.com ([2607:f8b0:4001:c03::235]:38617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtfHu-0006PG-VL for emacs-devel@gnu.org; Mon, 01 Jul 2013 10:41:07 -0400 Original-Received: by mail-ie0-f181.google.com with SMTP id x12so9710828ief.12 for ; Mon, 01 Jul 2013 07:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=BASibn3SnZvb7giNHGkI1bRD5FXari265mcR9wzSia4=; b=DMfwWG7G7R7lj3BkgGdo6Wzz1VhxOA6E7IbL1iqvxtLTQMeFMOFsIFIIl9QL/a3m2B a6NI6Ja6/XuDQ04oYbc9LNBpvAZBbUa2u8p6Ipd3UAV1e9SJQBiMai++dHEpo68hx3Nz uiOqvugRW8WZhe61lsMWgGZdL3Nqri68gLtedqikkC4eRf7BSKXoP3GEoNKRB4AY2fkL 6HqhwuQhZM1A5z/di9BsMKc976WqaW5ZrMEupNjb+uEEH1Da4KBGLHnwGXdtuAcsv2LK FKYAJXqP8vcgdUz/oQhi0hECb8KlKrhmzQTTi/Z47KpxyPqrSTQ5ryOcHTFlcBaxCxGD p2kA== X-Received: by 10.50.176.166 with SMTP id cj6mr15320811igc.56.1372689662608; Mon, 01 Jul 2013 07:41:02 -0700 (PDT) Original-Received: by 10.64.126.161 with HTTP; Mon, 1 Jul 2013 07:40:22 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161414 Archived-At: On Mon, Jul 1, 2013 at 4:11 PM, Drew Adams wrote: > Another possibility/suggestion, from little-to-no knowledge of this > stuff: Simply do not record or restore a minibuffer-only frame. Yes, that's one posibility, but then, if the user moved or resized it, these changes won't be restored. Not a deal breaker, but something to take into account. OTOH, restoring a minibuffer-only frame does not really make much sense unless you do it first of all and set default-minibuffer-frame to it... Time to go doing some experimenting. > Otherwise, record the `minibuffer' property of a frame, including the > case where it is nil (no minibuffer). The `minibuffer' property can contain non-readable things, like a window reference. > (But > from your message I now have a doubt: is it necessary to associate the > ordinary restored frames with the existing standalone minibuffer?) minibuffer can be t/n/only, but also a reference to a minibuffer window in another frame. - t : nothing to do, it works out of the box - nil: emacs will try to associate the frame with default-minibuffer-frame or create one minibuffer frame for it - only: as discussed above - a window: we currently can do nothing about this, because we do not have a way to name windows and restore references to them. > Keep in mind that to use a standalone minibuffer you really need to > set it up at startup time, e.g., from the command line or from your > init file. You cannot add a (useful) standalone minibuffer after Emacs > has already created its first frame, which has its own minibuffer. Yes. minibuffer-only frames and their brethren are strange beasts. J