From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: quit-window Date: Tue, 25 Oct 2011 07:28:44 +0300 Organization: JURTA Message-ID: <877h3tvgn7.fsf@mail.jurta.org> References: <86mxcsvjsk.fsf@googlemail.com> <4EA3DC67.8050607@gmx.at> <87obx77tms.fsf@mail.jurta.org> <4EA463EC.8030707@gmx.at> <87mxcrjbre.fsf@mail.jurta.org> <87bot5zppu.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319517450 10262 80.91.229.12 (25 Oct 2011 04:37:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2011 04:37:30 +0000 (UTC) Cc: Christoph Scholtes , martin rudalics , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 25 06:37:26 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 1RIYlQ-00055i-DO for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2011 06:37:25 +0200 Original-Received: from localhost ([::1]:48433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIYlP-0001Ax-TU for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2011 00:37:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIYlN-0001AQ-1x for emacs-devel@gnu.org; Tue, 25 Oct 2011 00:37:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIYlK-0004hr-Nh for emacs-devel@gnu.org; Tue, 25 Oct 2011 00:37:20 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:38386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIYlG-0004fr-O6; Tue, 25 Oct 2011 00:37:14 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 069106E806B; Mon, 24 Oct 2011 21:37:14 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 8547D451C567; Mon, 24 Oct 2011 21:37:12 -0700 (PDT) In-Reply-To: <87bot5zppu.fsf@gnu.org> (Chong Yidong's message of "Tue, 25 Oct 2011 11:59:09 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.113.175.8 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:145499 Archived-At: > I don't think it's necessary to introduce a separate command for this. > If we introduce a quit-window-hook, you can add a hook function that > conditionally kills the buffer based on its major mode. Or better `quit-window-alist' as a counterpart to `display-buffer-alist'. Ah, now I recall that I already proposed that, and Stefan said that the behavior of quit-window can be specified when displaying the buffer and/or creating the window. So perhaps `quit-window-hook' is not necessary too, and such specific window-quitting as e.g. checking for `Info-standalone' could be specified when creating a window with the *Info* buffer.