From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: Saving the frame layout between frames Date: Mon, 28 Oct 2013 18:52:27 +0100 Message-ID: <526EA45B.6090507@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382982783 22499 80.91.229.3 (28 Oct 2013 17:53:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2013 17:53:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: kernel-hacker@bennee.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 28 18:53:05 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 1Vaqzw-0006VW-SX for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Oct 2013 18:53:04 +0100 Original-Received: from localhost ([::1]:42466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vaqzw-0003Gl-E3 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Oct 2013 13:53:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vaqzg-0003Ga-4u for help-gnu-emacs@gnu.org; Mon, 28 Oct 2013 13:52:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaqzY-0006JP-AQ for help-gnu-emacs@gnu.org; Mon, 28 Oct 2013 13:52:48 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:50200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaqzY-0006J2-1B for help-gnu-emacs@gnu.org; Mon, 28 Oct 2013 13:52:40 -0400 Original-Received: from [62.47.33.131] ([62.47.33.131]) by mail.gmx.com (mrgmx103) with ESMTPA (Nemesis) id 0LeeNW-1W1ecl1oSs-00qUFN for ; Mon, 28 Oct 2013 18:52:37 +0100 Original-References: 87wqkxbluy.fsf@bennee.com X-Provags-ID: V03:K0:9cfg8h7yIKYwE5H1CMhnGPxpISi9iVrDn1pTcCyHTFdm57vNMmo b9emsy6xeIC2euu3Ei3KObugzjTKGeGPoledDnBKulY237FscX5gYm1lEP8GH4SKXhbJ4CM NVAbfc4P4BmhkbQQeNbRWDwtRqO5el9kMVjMLAIn6ioDQBDSz4MZ2Gb/G06/2c/GLUVOp04 jR+MO/H46AQGfTLwNvvRA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 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:94234 Archived-At: > (defun crmbk-new-frame-handler (frame) > "Do any appropriate set-up on new frame creation. > This is intended to be called during after-make-frame-functions" > (when (frame-parameter frame 'display) > (set-frame-parameter frame 'fullscreen 'fullboth) > (setq crmbk-current-frame frame) > (when crmbk-previous-frame-config > (window-state-put crmbk-previous-frame-config)) I suppose what you want here is (when crmbk-previous-frame-config (window-state-put crmbk-previous-frame-config (frame-root-window frame))) Note that running `after-make-frame-functions' doesn't select the new frame. > (crmbk-frame-mode t))) martin