From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Tue, 25 Jun 2013 08:46:51 +0200 Message-ID: <51C93CDB.2020301@gmx.at> References: <51C5AA68.4000204@alice.it> <51C6B138.50903@gmx.at> <51C6CF57.9030203@alice.it> <51C87C3E.90904@gmx.at> <83ehbrju1d.fsf@gnu.org> <87r4frcq9v.fsf@rosalinde.fritz.box> <87vc5345t3.fsf@gmail.com> <51C8B2C8.4000803@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372142830 13050 80.91.229.3 (25 Jun 2013 06:47:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2013 06:47:10 +0000 (UTC) Cc: Eli Zaretskii , Stephen Berman , Emacs developers , Jambunathan K , Angelo Graziosi To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 25 08:47:10 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 1UrN1x-0005NV-3h for ged-emacs-devel@m.gmane.org; Tue, 25 Jun 2013 08:47:09 +0200 Original-Received: from localhost ([::1]:47744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrN1w-0004dP-IR for ged-emacs-devel@m.gmane.org; Tue, 25 Jun 2013 02:47:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrN1t-0004dJ-Fc for emacs-devel@gnu.org; Tue, 25 Jun 2013 02:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrN1q-0004bE-DL for emacs-devel@gnu.org; Tue, 25 Jun 2013 02:47:05 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:61562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrN1q-0004aw-3Y for emacs-devel@gnu.org; Tue, 25 Jun 2013 02:47:02 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.16]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LpAT4-1UNmuO3SkO-00etvS for ; Tue, 25 Jun 2013 08:47:00 +0200 Original-Received: (qmail invoked by alias); 25 Jun 2013 06:47:00 -0000 Original-Received: from 62-47-49-71.adsl.highway.telekom.at (EHLO [62.47.49.71]) [62.47.49.71] by mail.gmx.net (mp016) with SMTP; 25 Jun 2013 08:47:00 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19XPkl5E6VX/lZMdfYChHYdx/PIrE44S+XYR852TV BWHiAA/2J4lQZB In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 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:161011 Archived-At: > This is a first cut against 24.3; no docstrings, not tested other than > trivially. Thank you. Since I never use desktop (I often restart Emacs to get rid of any history that piled up during a session) I urge anyone using it to test this. > Once window-state-(get|put) do work in the trunk we can try to massage > it into something better. Please try with the remedy I hinted at earlier. In `window-state-get-1' replace the entry (combination-limit . ,(window-combination-limit window)) by something like ,@(unless (window-live-p window) `(combination-limit . ,(window-combination-limit window))) ,@s never make an expression more comprehensible to me so please experiment. If it doesn't work out easily, simply throw the entire (combination-limit . ,(window-combination-limit window)) expression away. Dmitry now uses the combination-limit slot for storing the window's buffer when producing a window configuration and I don't have the slightest idea whether and how this would infer with what we do here :-( Thanks again, martin