[Top][All Lists]

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

Re: How to restore the layout?

From: Juanma Barranquero
Subject: Re: How to restore the layout?
Date: Mon, 8 Jul 2013 19:29:17 +0200

On Tue, Jul 2, 2013 at 12:38 PM, martin rudalics <address@hidden> wrote:

> In that case we'd have to delete the initial frame :-(

There are some cases where we need to delete the initial frame, so
that shouldn't be a problem.

I'm now writing the restore function and also fixing the parameter
filtering. I hope to install some changes tonight.

A couple of comments about your function:

       (let ((minibuffer-frame (window-frame (minibuffer-window frame))))
          ;; Process minibuffer-window frame parameter if present.
          ((and (setq minibuffer-window
                      (frame-parameter frame 'minibuffer-window))
                (window-minibuffer-p minibuffer-window))

There's no frame parameter minibuffer-window. I have changed that to

      (let ((minibuffer-frame (window-frame (minibuffer-window frame)))
            (minibuffer-window (frame-parameter frame 'minibuffer)))
         ((and (windowp minibuffer-window)
               (window-minibuffer-p minibuffer-window))
          (setq minibuffer-frame (window-frame minibuffer-window))


>           (let ((default (eq minibuffer-frame default-minibuffer-frame))
>                 (this-count
>                  (cdr (frame-parameter minibuffer-frame 'desktop-mini))))

AFAICS, default is not used anywhere.


reply via email to

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