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 05:31:48 +0200 Message-ID: References: <51C5AA68.4000204@alice.it> <51CC4CC1.3030202@alice.it> <51CC8403.1030009@gmx.at> <51CCA56A.8000508@gmx.at> <51CD49CF.1090103@gmx.at> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1372649558 18398 80.91.229.3 (1 Jul 2013 03:32:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jul 2013 03:32:38 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 01 05:32:40 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 1UtUqx-000848-4e for ged-emacs-devel@m.gmane.org; Mon, 01 Jul 2013 05:32:35 +0200 Original-Received: from localhost ([::1]:36255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtUqw-0000UJ-OZ for ged-emacs-devel@m.gmane.org; Sun, 30 Jun 2013 23:32:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtUqs-0000U2-Uy for emacs-devel@gnu.org; Sun, 30 Jun 2013 23:32:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtUqr-0001bR-Vt for emacs-devel@gnu.org; Sun, 30 Jun 2013 23:32:30 -0400 Original-Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:51418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtUqr-0001bH-PE for emacs-devel@gnu.org; Sun, 30 Jun 2013 23:32:29 -0400 Original-Received: by mail-ee0-f44.google.com with SMTP id c13so1775893eek.31 for ; Sun, 30 Jun 2013 20:32:29 -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 :content-type; bh=9rY5eYe8v60lGQbYFL8YK5B2d76MBd2Z8JSPYqd4hp8=; b=Yq/47G2ZQj18a2JkMT7CnxSOEWvME919eNvdzRffXo5/zoPYP/K+OriRH3IZum5hET on5WnWq8bRPOzHvAbEmpQ0izMoCJlHU+TyQH0WOq1RiLc+CiUjEGxCTaNnJtMvA/XbdW TjX/0rdxzsJeQaYfMK4CNqVSouF39+iSi74Fsogybyy9GUeH486sITpD1qferYXHEClN wMa/WCivBnQlx1UC4ZIYkflMQDdHKn8oaiIhEeh2U0SbJ+6wXwF+ynf20KegG9h/yoRI Kr13bJcKTQgdG2GdiczyF6Rt3l+xsk5gKmtQOhtIWNAAmRAgYLWNUg2vYKrEZKZkHTRa ZXxQ== X-Received: by 10.14.213.135 with SMTP id a7mr18824400eep.152.1372649548904; Sun, 30 Jun 2013 20:32:28 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Sun, 30 Jun 2013 20:31:48 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22c 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:161394 Archived-At: I've pushed a new patch. It renames the restore option to desktop-restore-frames, adds a new one desktop-restore-in-current-display, and includes a few bugfixes. In particular, on Windows: - Save in GUI mode - Restore in -nw mode - Save in -nw mode - Restore in GUI mode does work more or less reasonably. I've been forced to filter out the font frame parameter because it didn't really survive the roundtrip and caused an error. There's some work to do deciding which parameters make sense to save and which ones do not, specially when doing that GUI -> tty -> GUI roundtrip (on Windows and elsewhere). Other things to do: - Detect that frames are restored in a non-visible area and do something about it (discussion ongoing about the precise way to do it). - What to do about minibufferless frames and minibuffer-only frames? - In my tests, fullscreen frames (i.e., (fullscreen . fullscreen), not the other kinds) restore with the wrong height, about two lines longer that they should. Could be related to settings of tool-bar-mode, etc. Not very serious because there's a binding for toggle-frame-fullscreen, but it is still a bit ugly. - Currently, if you have desktop-restore-frames = t and want to reload the desktop without restoring frames, you must configure the variable or edit by hand the desktop file (or set desktop--saved-states to nil). I think it'd be good to have interactive arguments for desktop-(save|load) to toggle frame saving&restoring. Or treat this as sort of a pseudo-minor-mode and add a function to toggle it. - At some point in the future, Stefan's patch/idea to add an option to emacs to delay creating the first frame, so we can avoid the flicker of resizing it. That's off the top of my head. Anything else I've missed, just holler. J