From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: moving window handling into lisp Date: Tue, 28 Jul 2009 15:44:25 +0200 Message-ID: References: <4A6DC1A1.2000208@gmx.at> <4A6DDB61.8090403@gmx.at> <4A6EAB02.6080701@gmx.at> <4A6EEE42.1040808@gmx.at> <4A6EFBDB.9010801@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248788684 15263 80.91.229.12 (28 Jul 2009 13:44:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2009 13:44:44 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , Miles Bader To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 28 15:44:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MVmyq-0001CZ-FJ for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2009 15:44:36 +0200 Original-Received: from localhost ([127.0.0.1]:54235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVmyp-0007WC-Jf for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2009 09:44:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVmyk-0007Vp-KQ for emacs-devel@gnu.org; Tue, 28 Jul 2009 09:44:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVmyj-0007Vb-6Z for emacs-devel@gnu.org; Tue, 28 Jul 2009 09:44:30 -0400 Original-Received: from [199.232.76.173] (port=54608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVmyj-0007VY-0r for emacs-devel@gnu.org; Tue, 28 Jul 2009 09:44:29 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.245]:14419) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVmyg-0000gH-Fc; Tue, 28 Jul 2009 09:44:26 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so24494ana.21 for ; Tue, 28 Jul 2009 06:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=kBFROYAuXLrjGi+Gr0YGfpqkXPpcUvlJfQq2iivvG9k=; b=u34QE5zr6ZEaAFxgROeyuvx3P23NJuBBH4PCBNuqWnoY8K6PvxPkg3uTLG5ZzkBwe6 rpoDv0cCYH1GCodhiS9+1/IY/KQbeL81t37nxUhLsDFQv62SpU5ytE6xJrx1+Z5Mpgx1 S3ht0dFhA1UmIubJ8KeZ/rAU5i7giEKs04klE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=HdXJkJPSEzFMou8ZQ5Q8f5vEC1v/x0T7KS574Nay5BMZXjlHmBnxbLEatOcyI13srR Gfwli/bIF/6fbMNkrn6YOWQ3Nr8HYQLzFCzzJwsW5benxx1JYK14nkwM88xfCuxWpqet ka6eyGYn/h9jPpxkEgfqE+spwdmhHewr+FR4Q= Original-Received: by 10.100.255.17 with SMTP id c17mr9848789ani.188.1248788665140; Tue, 28 Jul 2009 06:44:25 -0700 (PDT) In-Reply-To: <4A6EFBDB.9010801@gmx.at> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113285 Archived-At: On Tue, Jul 28, 2009 at 3:23 PM, martin rudalics wrote: >> I expect display-buffer to always to something useful. But I do not >> expect that a saved window tree can always be put back (with all >> windows there) in any window (ie if the size of the window is too >> small). > > What do you expect it to do when restoring a saved session? =C2=A0IMHO it > should fail gracefully by trying to restore as much as possible. Yes, it is difficult. But I found I wonder if restoring as much as possible is the best strategy. First, it is hard to define what it should mean. Second, if it instead fail without restoring anything you can take actions like enlarging the target window/frame and try again.