From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: quit-window new behavior with frames
Date: Thu, 22 Sep 2011 10:40:30 +0200 [thread overview]
Message-ID: <87ipol2cn5.fsf@gmail.com> (raw)
In-Reply-To: 87mxdx2cqd.fsf@gmail.com
Sorry for the duplicate mail.
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
> martin rudalics <rudalics@gmx.at> writes:
>
>>> It now quit the help buffer, but don't delete the frame.
>>
>> Please debug `quit-window' and tell me why the conjunction below returns
>> nil in your case.
>>
>> ((and (not prev-buffer)
>> (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))
>>
>> Thanks, martin
>
> 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
>
> And 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
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
next prev parent reply other threads:[~2011-09-22 8:40 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
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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ipol2cn5.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).