From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.help Subject: Saving the frame layout between frames Date: Sun, 27 Oct 2013 19:10:01 +0000 Message-ID: <87ob6a5y46.fsf@linaro.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1382902100 8622 80.91.229.3 (27 Oct 2013 19:28:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Oct 2013 19:28:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 27 20:28:24 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 1VaW0d-0001bf-7U for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 20:28:23 +0100 Original-Received: from localhost ([::1]:38730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaW0c-0007hn-Nw for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 15:28:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaW0O-0007hg-CO for help-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:28:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaW0I-0002Eq-Co for help-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:28:08 -0400 Original-Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:41943 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaW0I-0002Ek-6m for help-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:28:02 -0400 Original-Received: from localhost ([127.0.0.1]) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1VaW2C-0001uN-Q8 for help-gnu-emacs@gnu.org; Sun, 27 Oct 2013 20:30:01 +0100 User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: alex.bennee@linaro.org X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 88.198.71.155 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:94224 Archived-At: 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ée