emacs-devel
[Top][All Lists]
Advanced

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

Re: quit-window new behavior with frames


From: martin rudalics
Subject: Re: quit-window new behavior with frames
Date: Thu, 22 Sep 2011 11:33:31 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> There is a previous buffer. ("*scratch*")
> #+BEGIN_SRC lisp
> ((and (not prev-buffer) ; => Return nil here.
>       (eq (nth 1 quit-restore) 'frame)
>       (eq (window-deletable-p window) 'frame)
>       (eq (nth 3 quit-restore) buffer))
>  ;; WINDOW's frame can be deleted.
>  (delete-frame (window-frame window))
>
> #+END_SRC

I see.  `special-display-popup-frame' doesn't reset the window's
previous buffers when creating a new frame.

> This is working:
>
> #+BEGIN_SRC lisp
> ((and (or (not prev-buffer)
>           (window-dedicated-p))
>       (eq (nth 1 quit-restore) 'frame)
>       (eq (window-deletable-p window) 'frame)
>       (eq (nth 3 quit-restore) buffer))
>  ;; WINDOW's frame can be deleted.
>  (delete-frame (window-frame window))
>
> #+END_SRC

Yes.  But the initial bug was in `special-display-popup-frame'.  I want
to delete only dedicated windows/frames that never showed another buffer
during their life.  Please check again.

Thanks, martin



reply via email to

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