From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: quit-window Date: Tue, 25 Oct 2011 11:59:09 +0800 Message-ID: <87bot5zppu.fsf@gnu.org> References: <86mxcsvjsk.fsf@googlemail.com> <4EA3DC67.8050607@gmx.at> <87obx77tms.fsf@mail.jurta.org> <4EA463EC.8030707@gmx.at> <87mxcrjbre.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319515167 30961 80.91.229.12 (25 Oct 2011 03:59:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2011 03:59:27 +0000 (UTC) Cc: Christoph Scholtes , martin rudalics , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 25 05:59:22 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 1RIYAc-0004nF-Em for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2011 05:59:22 +0200 Original-Received: from localhost ([::1]:45199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIYAc-0004lr-44 for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2011 23:59:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIYAZ-0004la-2Q for emacs-devel@gnu.org; Mon, 24 Oct 2011 23:59:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIYAX-0007gx-Qm for emacs-devel@gnu.org; Mon, 24 Oct 2011 23:59:19 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:58140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIYAX-0007gt-O4 for emacs-devel@gnu.org; Mon, 24 Oct 2011 23:59:17 -0400 Original-Received: from bb116-14-207-132.singnet.com.sg ([116.14.207.132]:40419 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RIYAW-0004ZG-Tg; Mon, 24 Oct 2011 23:59:17 -0400 In-Reply-To: <87mxcrjbre.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 24 Oct 2011 08:12:45 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:145493 Archived-At: Juri Linkov writes: > `quit-window-kill-buffer' is useful when you need to return to the > initial window from which this buffer was displayed and also to delete > the window when the current buffer is last in its window history. > > Sometimes this behavior is dangerous, e.g. when wanting to kill all > buffers visited in the selected window one by one, 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.