From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: kill-buffer calls frame's buffer-predicate for all buffers even if the killed buffer was not shown in any window. Date: Mon, 16 Jan 2017 18:55:52 +0200 Message-ID: <83bmv79c6f.fsf@gnu.org> References: <83inpg9ib5.fsf@gnu.org> <83d1fn9dio.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1484585801 26108 195.159.176.226 (16 Jan 2017 16:56:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2017 16:56:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: zxnotdead@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 16 17:56:35 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTAa5-0005s2-DQ for ged-emacs-devel@m.gmane.org; Mon, 16 Jan 2017 17:56:29 +0100 Original-Received: from localhost ([::1]:58137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTAaA-000810-3b for ged-emacs-devel@m.gmane.org; Mon, 16 Jan 2017 11:56:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTAZd-0007zy-Qe for emacs-devel@gnu.org; Mon, 16 Jan 2017 11:56:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTAZa-0007Km-Pj for emacs-devel@gnu.org; Mon, 16 Jan 2017 11:56:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTAZa-0007Ki-M4; Mon, 16 Jan 2017 11:55:58 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3444 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cTAZZ-0001C0-Ox; Mon, 16 Jan 2017 11:55:58 -0500 In-reply-to: <83d1fn9dio.fsf@gnu.org> (message from Eli Zaretskii on Mon, 16 Jan 2017 18:26:55 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:211329 Archived-At: > Date: Mon, 16 Jan 2017 18:26:55 +0200 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > So I'd suggest to leave these two commands alone, and instead > consider adding some new function, say kill-temp-buffer, which will > only do a small subset of what kill-buffer does, and disregard stuff > like visibility of candidate buffers to which current-buffer needs > to switch. Btw, you didn't describe the use case where this issue got in your way, so perhaps you should. That would allow to decide whether the problems are bad enough to look for a solution. Thanks.