From: martin rudalics <rudalics@gmx.at>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: quit-window new behavior with frames
Date: Thu, 22 Sep 2011 11:33:31 +0200 [thread overview]
Message-ID: <4E7B00EB.3070702@gmx.at> (raw)
In-Reply-To: <87r5392cv8.fsf@gmail.com>
> 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
next prev parent reply other threads:[~2011-09-22 9:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-08 6:35 quit-window new behavior with frames Thierry Volpiatto
2011-09-08 15:52 ` martin rudalics
2011-09-08 17:43 ` Thierry Volpiatto
2011-09-22 6:06 ` Thierry Volpiatto
2011-09-22 6:58 ` martin rudalics
2011-09-22 7:37 ` Thierry Volpiatto
2011-09-22 8:05 ` martin rudalics
2011-09-22 8:35 ` Thierry Volpiatto
2011-09-22 9:33 ` martin rudalics [this message]
2011-09-22 9:43 ` Thierry Volpiatto
2011-09-22 12:37 ` Stefan Monnier
2011-09-23 8:25 ` martin rudalics
2011-09-23 15:28 ` Stefan Monnier
2011-09-23 18:04 ` martin rudalics
2011-09-23 20:05 ` Stefan Monnier
2011-09-24 18:49 ` martin rudalics
2011-09-22 8:38 ` Thierry Volpiatto
2011-09-22 8:40 ` Thierry Volpiatto
2011-10-05 12:33 ` Thierry Volpiatto
2011-10-05 13:05 ` martin rudalics
2011-10-05 13:36 ` Thierry Volpiatto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E7B00EB.3070702@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@gnu.org \
--cc=thierry.volpiatto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.