[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving the frame layout between frames

From: martin rudalics
Subject: Re: Saving the frame layout between frames
Date: Mon, 28 Oct 2013 18:52:27 +0100

> (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
     crmbk-previous-frame-config (frame-root-window frame)))

Note that running `after-make-frame-functions' doesn't select the new

>     (crmbk-frame-mode t)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]