From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: Saving the frame layout between frames Date: Sun, 27 Oct 2013 15:50:18 -0400 Message-ID: References: <87ob6a5y46.fsf@linaro.org> 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 1382903465 22581 80.91.229.3 (27 Oct 2013 19:51:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Oct 2013 19:51:05 +0000 (UTC) Cc: emacs To: =?UTF-8?B?QWxleCBCZW5uw6ll?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 27 20:51:11 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VaWMh-0006dT-1c for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 20:51:11 +0100 Original-Received: from localhost ([::1]:38765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaWMg-0002cO-Gp for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 15:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaWMX-0002bQ-2o for help-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:51:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaWMV-00081A-K7 for help-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:51:01 -0400 Original-Received: from mail-ve0-x232.google.com ([2607:f8b0:400c:c01::232]:52967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaWMV-000816-GM for help-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:50:59 -0400 Original-Received: by mail-ve0-f178.google.com with SMTP id jy13so5236377veb.37 for ; Sun, 27 Oct 2013 12:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=FGozZPT/cP900pc5jWID7fEfFE6rFYtDYIEFAU8Ww9Q=; b=P0O84rOpQsQqztUjoZCXAvRzeOWHm7izuiEHLe8K0mFaRSL9j601u4xB4nZf6gRIDt p57b4fwZq3NI8DeEJ2fBC7SmwCQ2mJyC47DR0bkeevvBKpE9xWCC6V+hxqZ3OUM1y61J UO0V4uoSh4zS6yBGLCMQ/ks9CQjQIcoabDLYP5Xt/tU1OwQ6Ho7+KTVsXhkyOz5zNIvL YpOP+huZwl6a/YV4gNnO1P//w4NrgTX1tr5+RlDLRRQceqzmGtl5chmLap3EyTn7LKvA 6GNK/bcfxLNA/zDFo9qYj34d5QnMOolY4mviBcZTthC2pFwenufVu6Ytyi4f+CZH4FwJ geYg== X-Received: by 10.220.142.140 with SMTP id q12mr189608vcu.21.1382903458587; Sun, 27 Oct 2013 12:50:58 -0700 (PDT) Original-Received: by 10.220.76.6 with HTTP; Sun, 27 Oct 2013 12:50:18 -0700 (PDT) In-Reply-To: <87ob6a5y46.fsf@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c01::232 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:94225 Archived-At: I'm not going to be too much help but winner-mode sounds like it does most of what you're looking for so maybe look at how they do it? http://www.emacswiki.org/emacs/WinnerMode On Sun, Oct 27, 2013 at 3:10 PM, Alex Benn=C3=A9e wrote: > Hi, > > Following on from my previous adventures with chromebook.el I'm now > trying to save the frame layout so when I create a new frame I can > restore the layout of the buffers and windows as they where. > > I've been using: > > (setq crmbk-previous-frame-config (current-window-configuration)) > > However when the new frame is created and I run: > > (when crmbk-previous-frame-config > (set-window-configuration crmbk-previous-frame-config)) > > It's not working. If I run these commands from within a frame after > messing around with the configuration it works as expected so I assume > the breakage is caused by the fact the new frame context is incompatible > (indeed winner-mode doesn't seem to save window configuration between > frame instances). > > So is there any way around this? > > -- > Alex Benn=C3=A9e > >