From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Re: Annoying (frameset bug?): desktop-mode and maxmized frame Date: Mon, 11 Nov 2013 13:22:42 +0530 Message-ID: <87txfjcr3p.fsf@gmail.com> References: <87ob5srgmz.fsf@gmail.com> <87zjpcpe9h.fsf@gmail.com> <87mwlcp33l.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384156374 10489 80.91.229.3 (11 Nov 2013 07:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Nov 2013 07:52:54 +0000 (UTC) Cc: Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 11 08:52:58 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 1VfmIp-0005gZ-Bg for ged-emacs-devel@m.gmane.org; Mon, 11 Nov 2013 08:52:55 +0100 Original-Received: from localhost ([::1]:35339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfmIp-0002wH-1K for ged-emacs-devel@m.gmane.org; Mon, 11 Nov 2013 02:52:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfmId-0002v5-S0 for emacs-devel@gnu.org; Mon, 11 Nov 2013 02:52:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfmIV-0007s0-Dj for emacs-devel@gnu.org; Mon, 11 Nov 2013 02:52:43 -0500 Original-Received: from mail-pd0-x22c.google.com ([2607:f8b0:400e:c02::22c]:36948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfmIV-0007rw-62 for emacs-devel@gnu.org; Mon, 11 Nov 2013 02:52:35 -0500 Original-Received: by mail-pd0-f172.google.com with SMTP id w10so4868889pde.3 for ; Sun, 10 Nov 2013 23:52:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; bh=gUb0B+NEFMqaOqCSKiANQM1vXrlNsmMdXY6QZSwULhk=; b=kKPtcRlniA2j2nkm+O15rcRyhjUpnMdsmQzFp5Oa1QyvyBUmPuHqI77cpqpAQa5CHk 6HqxUlbmUPKauqzWtu7gtDfWCKgX2m+gILoySIXjWX8GkL9vjY/gzMDchLm/fU/gI6mK QIIApSqkAP1MYreor70nmIpG0dAX47nlngBtDKfAKnOepanGNpstEmqEORZyh1DrpWAd uDbk2Mefr2dN2s0SzkfwRcUlpS2K5LH8lAfmacnWUVxyZbVVYix/wHn6bABpRrBMymxp qALR+Z9kQxvzZz/5GyzFRppga905n8OrdxsclASNqiTpkCBopltTQZfHOOuh7YgNFDiP wmrw== X-Received: by 10.67.1.101 with SMTP id bf5mr29261694pad.50.1384156353798; Sun, 10 Nov 2013 23:52:33 -0800 (PST) Original-Received: from debian-6.05 ([115.241.112.235]) by mx.google.com with ESMTPSA id wp8sm28999201pbc.26.2013.11.10.23.52.31 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 10 Nov 2013 23:52:32 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::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:165142 Archived-At: Juanma Barranquero writes: > What I'm saying is that the things frameset.el does are complex It is easy to get lost in to details and stuff when you are the original developer of the feature :-). What I am asking for is simple and achievable. ---------------------------------------------------------------- I am asking for moving the frame restoration as far ahead as is humanly possible in the init sequence. i.e., Restore the frames before the buffers are loaded. The current observed behaviour tells me that frames are restored *after* the buffers are loaded which means that re-sizing happens later. ---------------------------------------------------------------- TLDR: (Effectively) Swap the relative order of the following calls in desktop-read ;; Evaluate desktop buffer and remember when it was modified. (load (desktop-full-file-name) t t t) (desktop-restore-frameset) ---------------------------------------------------------------- With around 200 buffers open, the below simple fix to .emacs.desktop gives me a better "resizing experience". # See .emacs.desktop (setq desktop-saved-frameset blah blah) + (desktop-restore-frameset) ;; Buffer section -- buffers listed in same order as in buffer list: (desktop-create-buffer blah) (desktop-create-buffer blah) (desktop-create-buffer blah)