From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 28 Jun 2013 16:06:22 +0300 Message-ID: <834ncifkq9.fsf@gnu.org> References: <51C5AA68.4000204@alice.it> <51C8B2C8.4000803@gmx.at> <51C93CDB.2020301@gmx.at> <51C9C790.3020407@gmx.at> <51CA0D4C.7080204@alice.it> <51CC3E42.7020409@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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1372424804 24796 80.91.229.3 (28 Jun 2013 13:06:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 13:06:44 +0000 (UTC) Cc: stephen.berman@gmx.net, angelo.graziosi@alice.it, emacs-devel@gnu.org, rudalics@gmx.at, monnier@iro.umontreal.ca, jan.h.d@swipnet.se, kjambunathan@gmail.com To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 15:06:42 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 1UsYNt-0001pj-NA for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 15:06:41 +0200 Original-Received: from localhost ([::1]:39694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsYNt-0004mV-7i for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 09:06:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsYNo-0004if-Bn for emacs-devel@gnu.org; Fri, 28 Jun 2013 09:06:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsYNn-0000QT-5N for emacs-devel@gnu.org; Fri, 28 Jun 2013 09:06:36 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:65450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsYNm-0000PQ-Ty for emacs-devel@gnu.org; Fri, 28 Jun 2013 09:06:35 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MP300J00TNLJ500@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 28 Jun 2013 16:06:24 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MP300J4ATQN7790@a-mtaout20.012.net.il>; Fri, 28 Jun 2013 16:06:24 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:161199 Archived-At: > From: Juanma Barranquero > Date: Fri, 28 Jun 2013 14:05:32 +0200 > Cc: Jan Dj=C3=A4rv ,=20 > =09Angelo Graziosi , Emacs developers ,=20 > =09Stefan Monnier , Eli Zaretskii ,=20 > =09Stephen Berman , Jambunathan K >=20 > We do not *want* to restore the sizes, we *must* restore the sizes. > Otherwise, if I have a frame with lots & lots of tiny windows and I > try to restore it in a default-sized frame, restoring will fail for > lack of space or for trying to bypass the safe minimum width/height= . > And that's exactly the kind of frame I would be pretty pissed off t= o > have to rebuild by hand because s&r failed... Restoring the session is not supposed to be 100% reliable. It can't. The existing code already fails to restore some buffers, if their files disappeared, for example. You should do the same with windows and frames: make a good-faith effort to restore them, and if you can't, display a message and move on. > As I said in a previous message, "some cases" =3D "all cases" for m= e. If > people wants to allow that to be customizable, fine, we can add suc= h > an option. It's not about being customizable, it's about avoiding the "perfect" solution (which doesn't exist).