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: Fri, 23 Sep 2011 10:25:57 +0200 Message-ID: <4E7C4295.4050906@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> <4E7B00EB.3070702@gmx.at> 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 1316766377 24399 80.91.229.12 (23 Sep 2011 08:26:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Sep 2011 08:26:17 +0000 (UTC) Cc: emacs-devel@gnu.org, Thierry Volpiatto To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 23 10:26:13 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 1R715I-0007VT-MO for ged-emacs-devel@m.gmane.org; Fri, 23 Sep 2011 10:26:12 +0200 Original-Received: from localhost ([::1]:49755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R715H-0006NE-WD for ged-emacs-devel@m.gmane.org; Fri, 23 Sep 2011 04:26:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R715E-0006Mr-D5 for emacs-devel@gnu.org; Fri, 23 Sep 2011 04:26:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R715A-0002L1-8l for emacs-devel@gnu.org; Fri, 23 Sep 2011 04:26:08 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:58644) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1R7159-0002Kf-Ph for emacs-devel@gnu.org; Fri, 23 Sep 2011 04:26:04 -0400 Original-Received: (qmail invoked by alias); 23 Sep 2011 08:26:00 -0000 Original-Received: from 62-47-52-86.adsl.highway.telekom.at (EHLO [62.47.52.86]) [62.47.52.86] by mail.gmx.net (mp022) with SMTP; 23 Sep 2011 10:26:00 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/+SSQMV93+6TDh+HX645Ghnn2JO0/b7FZCv9wNOs VvehxjH+EfayvE User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:144220 Archived-At: > The dedicated bit is reset to nil before the window can show any other > buffer, so if dedicated is non-nil, you don't have to check > anything else. Not really, because the dedicated bit can be set by someone else. Here I only want to handle the case where the dedicated bit was set and modified exclusively by `display-buffer' related routines. So we have two cases: (1) If the dedicated bit is set by `display-buffer' routines only, it is set at the time of creation and no other buffer is ever shown in it (at least according to the specifications you gave earlier). In this case, there's no previous buffer and `quit-window' can delete the window or frame. (2) If the dedicated bit is set in some other way, there might be a previous buffer and I switch to that buffer instead of deleting the window or frame. martin