From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: quit-window new behavior with frames Date: Thu, 22 Sep 2011 11:33:31 +0200 Message-ID: <4E7B00EB.3070702@gmx.at> References: <87litzbkyx.fsf@gmail.com> <4E68E4AD.3060205@gmx.at> <874o053ybm.fsf@gmail.com> <4E7ADC88.60606@gmx.at> <87vcsl2fje.fsf@gmail.com> <4E7AEC5B.9020801@gmx.at> <87r5392cv8.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1316684025 2353 80.91.229.12 (22 Sep 2011 09:33:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 09:33:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 22 11:33:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R6ff1-00023L-Oi for ged-emacs-devel@m.gmane.org; Thu, 22 Sep 2011 11:33:40 +0200 Original-Received: from localhost ([::1]:49587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6ff1-0005Ih-BM for ged-emacs-devel@m.gmane.org; Thu, 22 Sep 2011 05:33:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6fey-0005IQ-9S for emacs-devel@gnu.org; Thu, 22 Sep 2011 05:33:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6fex-0000el-B3 for emacs-devel@gnu.org; Thu, 22 Sep 2011 05:33:36 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:53430) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1R6few-0000eL-VA for emacs-devel@gnu.org; Thu, 22 Sep 2011 05:33:35 -0400 Original-Received: (qmail invoked by alias); 22 Sep 2011 09:33:33 -0000 Original-Received: from 62-47-35-112.adsl.highway.telekom.at (EHLO [62.47.35.112]) [62.47.35.112] by mail.gmx.net (mp043) with SMTP; 22 Sep 2011 11:33:33 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19iYFsPcNtibBciO8CV32tgQthL2geJoWLrm5v+Dv TD0YQUSlFdzhKd User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87r5392cv8.fsf@gmail.com> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144182 Archived-At: > 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