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: Tue, 2 Jul 2013 18:32:36 +0200 Message-ID: References: <51C5AA68.4000204@alice.it> <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> <51D2ADC1.5060902@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1372782802 27295 80.91.229.3 (2 Jul 2013 16:33:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jul 2013 16:33:22 +0000 (UTC) Cc: Emacs developers To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 02 18:33:24 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 1Uu3W8-0005aC-0v for ged-emacs-devel@m.gmane.org; Tue, 02 Jul 2013 18:33:24 +0200 Original-Received: from localhost ([::1]:37653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu3W7-0005Qm-LY for ged-emacs-devel@m.gmane.org; Tue, 02 Jul 2013 12:33:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu3W3-0005Qc-U4 for emacs-devel@gnu.org; Tue, 02 Jul 2013 12:33:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uu3W2-0006cq-0o for emacs-devel@gnu.org; Tue, 02 Jul 2013 12:33:19 -0400 Original-Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:51366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu3W1-0006cd-Qc for emacs-devel@gnu.org; Tue, 02 Jul 2013 12:33:17 -0400 Original-Received: by mail-ie0-f178.google.com with SMTP id u16so13077981iet.9 for ; Tue, 02 Jul 2013 09:33:17 -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=m3JjuT+jGGzKGf7s33z8gxGgxmOWNHEmsH4JxtvlmUY=; b=Hff0wc2xR1FuE4TRK0FxsWXsN+Ui1G6pukIdsOnrl/RUd7aWoGFLuP9X2V1Hec2oAY /E0fPOgNyKZs+Isw9cft7WZusxsYFRD9zAzPY1WXMbhkdcowG2NfjYupGZYiTMDNBpBx 6JAaTYu9BYEoNs+OcelTfPpW+yWv48EzvsWA4tpuwaVrg2LqaSHErzH7eJy5OIxDAbUl RaWCILMSJKS0pyJM3CYvbwFpeGqjCJKZfYf24kJqQVgpsjraMUC4HBUpv/9YTUDVY8ot p5kztKn015/I9lAsNPDwcGxJUI1GL31VzjtSgQbVq9Co3D98+SMGxnSvKRGReUTqAXcj eXig== X-Received: by 10.50.29.9 with SMTP id f9mr14368409igh.11.1372782797262; Tue, 02 Jul 2013 09:33:17 -0700 (PDT) Original-Received: by 10.64.250.7 with HTTP; Tue, 2 Jul 2013 09:32:36 -0700 (PDT) In-Reply-To: <51D2ADC1.5060902@gmx.at> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::232 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:161446 Archived-At: On Tue, Jul 2, 2013 at 12:38 PM, martin rudalics wrote: > A first, untested stab is below: Frames get a desktop-mini parameter > which is a cons. The car is t if the frame has a minibuffer and nil if > not. For a t-car frame the cdr is its number. For a nil-car frame cdr > t means use the default minibuffer frame and a number use the minibuffer > frame whose desktop-mini cdr has that number. This is intended to be run before desktop--save-frames, I suppose? > But I'm not sure how to do handle the problem sketched above so I didn't > write the restoration part. Oh, don't worry. My local copy is in a state of flux right now, better not to invest too much time in the current trunk code. I'm seeing a frame height problem on Windows 7 with side-aligned frames (=> the ones you get by typing Windows + Left or Windows + Right). With a minimal .emacs, containing: (desktop-save-mode 1) (setq desktop-restore-frames t) then emacs W-left C-x 5 2 W-right ;;; at this point, both frames height's are 65 lines C-x 5 o C-x C-c emacs ;;; now left frame's height is 65 lines, right frame's height is 68; its top is also a bit higher Comparing the saved state before & after, there only differences are the height and top parameters of the second frame, and obviously the total-height in the window-state. Whatever happens, happens when creating a new frame with (make-frame-on-display display saved-state). If you add (setq default-frame-alist '((tool-bar-lines . 0))) to .emacs, it doesn't happen anymore. ISTR some old bug report about this Any idea how to fix that? J