From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10348: 24.0.92; Save and load window states Date: Fri, 23 Dec 2011 19:07:01 -0500 Message-ID: References: <4ef24371.94110e0a.6fbb.ffffc8f3@mx.google.com> <4EF36318.6000006@gmx.at> <4EF45888.3030204@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1324685273 26474 80.91.229.12 (24 Dec 2011 00:07:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2011 00:07:53 +0000 (UTC) Cc: Michael Bach , 10348@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 24 01:07:48 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ReF9Q-0005ci-N3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Dec 2011 01:07:48 +0100 Original-Received: from localhost ([::1]:36843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReF9Q-0007P4-2w for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Dec 2011 19:07:48 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReF9N-0007Oy-97 for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2011 19:07:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ReF9M-0004uT-7k for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2011 19:07:45 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReF9M-0004uP-3C for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2011 19:07:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ReFBZ-0007g5-Im for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2011 19:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Dec 2011 00:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10348-submit@debbugs.gnu.org id=B10348.132468536629465 (code B ref 10348); Sat, 24 Dec 2011 00:10:01 +0000 Original-Received: (at 10348) by debbugs.gnu.org; 24 Dec 2011 00:09:26 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReFB0-0007fC-3R for submit@debbugs.gnu.org; Fri, 23 Dec 2011 19:09:26 -0500 Original-Received: from smtp-02.vtx.ch ([194.38.175.91]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReFAx-0007f2-9Y for 10348@debbugs.gnu.org; Fri, 23 Dec 2011 19:09:24 -0500 Original-Received: from ceviche.home (dyn.144-85-182-057.dsl.vtx.ch [144.85.182.57]) by smtp-02.vtx.ch (VTX Services SA) with ESMTP id DE12A607E8; Sat, 24 Dec 2011 01:07:03 +0100 (CET) Original-Received: by ceviche.home (Postfix, from userid 20848) id 91A23660D4; Fri, 23 Dec 2011 19:07:01 -0500 (EST) In-Reply-To: <4EF45888.3030204@gmx.at> (martin rudalics's message of "Fri, 23 Dec 2011 11:31:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 23 Dec 2011 19:10:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55146 Archived-At: >>> (1) Do not save the `clone-of' parameter. It's not yet useful anyway. >>> This will not solve the more general problem mentioned above. >> As mentioned, it's not a really convincing solution. > It would allow us to silently ignore this problem until 24.2. And it > would obviously allow Michael to go on with his work. His feedback > would be overly welcome here. No, it would address this particular bug-report, but similar problems may reappear at any time. > IIUC this is what desktop does. The problem is rather that we would > have to distinguish between values needed for intra-session purposes and > those that make sense for inter-session purposes too. I'm not sure distinguishing the two is needed (especially for window-state-*). >>> Unless you have a better suggestion I'll apply (1) for Emacs 24.1 and >>> try to propose a combination of (3) and (4) for later releases. >> I think the best course of action is to only save the window >> parameters listed in some variable (window-state-saved-parameters?). > You mean that anyone who misuses that variable (by including, for > example, a parameter that actually stores a window object as value) > would be on her own? I don't see any harm in it. > Doesn't look so attractive to me since the effect will only be seen in > a new session, some time after the problematic save happened. Not if we make this variable specify which parameters to include in window-states, rather than only which parameters to write to a file. Or maybe I don't understand the problem you're referring to. >> Actually, it might even be good to filter which params to keep not just >> when saving but already when constructing the window-state object (some >> params may simply not belong in a window-state object because restoring >> them would make no sense). > Agreed. >> After all the window-configurations don't save&restore >> window parameters. > Currently they do (unless you modify them destructively). Otherwise, > side windows and atomic windows won't work. Oh, I see that's another change in Emacs-24. It's actually problematic because set-window-parameter does operate destructively, so it makes the semantics rather irregular. Stefan