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: Thu, 4 Jul 2013 23:34:09 +0200 Message-ID: References: <51C5AA68.4000204@alice.it> <51CC8403.1030009@gmx.at> <51CCA56A.8000508@gmx.at> <51CCA7DC.8060605@gmx.at> <83fvw2g44j.fsf@gnu.org> <51CE9B05.1090202@gmx.at> <51CFFBED.7090400@gmx.at> <51D02AB0.5070103@gmx.at> <51D5DE14.4090507@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1372973703 2560 80.91.229.3 (4 Jul 2013 21:35:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2013 21:35:03 +0000 (UTC) Cc: Emacs developers , martin rudalics , Stefan Monnier , Eli Zaretskii , Stephen Berman , Jambunathan K To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 04 23:35:04 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 1UurB5-0006RR-4v for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2013 23:34:59 +0200 Original-Received: from localhost ([::1]:33478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UurB4-0004To-FP for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2013 17:34:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UurAz-0004T0-BZ for emacs-devel@gnu.org; Thu, 04 Jul 2013 17:34:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UurAy-0003sw-G1 for emacs-devel@gnu.org; Thu, 04 Jul 2013 17:34:53 -0400 Original-Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:43876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UurAw-0003sZ-MK; Thu, 04 Jul 2013 17:34:50 -0400 Original-Received: by mail-ea0-f173.google.com with SMTP id g15so1084772eak.18 for ; Thu, 04 Jul 2013 14:34:49 -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=ZAzzKcKoEDl1rlAr+5HiMIdy9oqljSiPFntaOCaKPXo=; b=eVejbEOIKxAi0EnikPSQnV+2qL47id+y+zgXdSm/CCcf3jzoHHbpdG8c/07WZQ8HHt b0g48l/lo1lqPC1XEQeTfGmwZ0LmHY1JCRodMvRsvld5WbM7MdTRdUd5Tuvr46nWktie rC0og62TQrysNHxnPiCSScqw8tlqMvdAic2yxAsXyoGD+rOsBYUq865NJlC0TARwlZav 4OAl6uGmlB/8OcTKWF4z9QsHPX4DpgVeaJmaLjCA2hcmKlkgyKAVxo4XiKgmM+v7E8xa 7YS413Q/Jns95MBINDec9dd1T2zc0o3f1xyGbo3fFbqqZ6+2XLC9oR7yjHIn4cVVbGkH cT9A== X-Received: by 10.14.213.135 with SMTP id a7mr8578515eep.152.1372973689794; Thu, 04 Jul 2013 14:34:49 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Thu, 4 Jul 2013 14:34:09 -0700 (PDT) In-Reply-To: <51D5DE14.4090507@alice.it> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22d 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:161539 Archived-At: On Thu, Jul 4, 2013 at 10:41 PM, Angelo Graziosi wrote: > With the GTK build of trunk on Cygwin [1] I notice the following.. [2] I can not test the Cygwin build, but in Emacs for Windows, what Emacs considers a "maximized" or a "fullscreen" frame is not really a maximized frame (window manager style, I mean). If I maximize (wm-style) a frame and exit Emacs, when I restart it I get a frame of the same size, but neither maximized.nor in the same exact location. BTW, if you disable the tool bar before saving (adding (tool-bar-lines . 0) to default-frame-alist, for example), do you see any difference? J > > Suppose I start Emacs without any desktop file. It starts with the default > frame almost a square. Now I click on maximize button and the frame has the > width of the Windows desktop (about 160 columns) and the height just a line > above the Windows status bar [3]. > > After this I quit from Emacs, it asks to save desktop (Yes), I restart > Emacs... It starts with a frame whose width is as that of Windows desktop > (OK) but the height is N-4 lines and the maximized button is *not* selected. > Maximizing, the frame gains another line (N-3). > > I notice this only with the Cygwin build. On Ubuntu and Kubuntu the frame is > restored always with the maximize button selected and takes always N-2 > lines. It is really maximized! > > > Ciao > Angelo. > > > --- > [1] On XP the windows has on top right corner 3 buttons (from left to > right): minimize, maximize and close > > [2] To the init file I have added > (setq desktop-restore-frames t) > > [3] If the Windows desktop has N+2 lines (+2 for the status bar) then the > Emacs frame maximized has N-3 lines