From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Bach Newsgroups: gmane.emacs.help Subject: Re: Save and load window states Date: Wed, 21 Dec 2011 21:13:24 +0100 Message-ID: <4ef23cf5.0d0a0e0a.60bc.ffffbbb7@mx.google.com> References: <4EF1FB5E.7090008@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1324498179 23865 80.91.229.12 (21 Dec 2011 20:09:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2011 20:09:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: martin rudalics Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 21 21:09:35 2011 Return-path: Envelope-to: geh-help-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 1RdSTn-0007Rn-2J for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2011 21:09:35 +0100 Original-Received: from localhost ([::1]:44560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdSTm-00069g-5x for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2011 15:09:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdSTh-00069Y-LT for help-gnu-emacs@gnu.org; Wed, 21 Dec 2011 15:09:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdSTg-000314-GS for help-gnu-emacs@gnu.org; Wed, 21 Dec 2011 15:09:29 -0500 Original-Received: from mail-ee0-f41.google.com ([74.125.83.41]:43213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdSTg-00030z-CA for help-gnu-emacs@gnu.org; Wed, 21 Dec 2011 15:09:28 -0500 Original-Received: by eekc41 with SMTP id c41so8186903eek.0 for ; Wed, 21 Dec 2011 12:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=XdO5dK7FylSf3wZjYsJFi363edefrDoncH2nU5hYfO0=; b=nZOu7iXjBdVU6k9+2eb2WrnbDdVc80kDpAnwEiJNxqNYklld8oUf3EU7dwT9Z+0b1y X62CN21fqFI6POwAKKZjtdjafvRch7fc7/LouilPRbtNLA6hwtlAIPd6FAkFw5v/bGiz wdC9PeToKWREKOIcVlfP0uwXme5JtACFbfixM= Original-Received: by 10.213.25.213 with SMTP id a21mr1644252ebc.38.1324498166876; Wed, 21 Dec 2011 12:09:26 -0800 (PST) Original-Received: from voschtro (chello084112087167.3.11.univie.teleweb.at. [84.112.87.167]) by mx.google.com with ESMTPS id 13sm24505952eeu.1.2011.12.21.12.09.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Dec 2011 12:09:25 -0800 (PST) In-Reply-To: <4EF1FB5E.7090008@gmx.at> (martin rudalics's message of "Wed, 21 Dec 2011 16:29:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83238 Archived-At: martin rudalics writes: >> Saving works this way. The file has the same contents shown in the >> *Messages* buffer when doing a manual `window-state-get'. On loading, I >> get either "Invalid read syntax #" > > This is a bug. Please report it as Drew suggested. > Will do. >> or "End of file during parsing". > > This is probably due to the fact that you called `my-load-frame' twice > in a row and you were already at the end of the buffer in the second > call so there was nothing more to read. > Yep, that was the reason. I adapted `my-load-frame' accordingly. >> Can someone give me a hint on how to make it work? > > Please comment out the two code lines > > (unless (window-parameter window 'clone-of) > ;; Make a clone-of parameter. > (setq list (cons (cons 'clone-of window) list))) > > in the function `window--state-get-1' and recompile window.el (possibly > twice - I'm somewhat confused by Stefan's backquote syntax here). These > lines are currently for internal use only, their absence should not harm > you. If you still see problems, please tell me. > Unfortunately, that did not work. Tried it compiled once and twice. Same as before. Thanks so far michael