From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#20463: 25.0.50; New deletion commands in buffer-menu [PATCH] Date: Tue, 23 Feb 2016 21:38:55 +1100 Message-ID: <87povnsocg.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456224067 29850 80.91.229.3 (23 Feb 2016 10:41:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 10:41:07 +0000 (UTC) Cc: 20463@debbugs.gnu.org, Stefan Monnier To: Filipp Gunbin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 11:40:49 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYAOa-0003FF-6v for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 11:40:44 +0100 Original-Received: from localhost ([::1]:55858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYAOU-0000eo-Fw for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 05:40:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYANx-0008Dg-P4 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:40:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYANu-0006kP-E5 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:40:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYANu-0006kL-BM for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYANu-0005n9-2d for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2016 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20463 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20463-submit@debbugs.gnu.org id=B20463.145622399422246 (code B ref 20463); Tue, 23 Feb 2016 10:40:02 +0000 Original-Received: (at 20463) by debbugs.gnu.org; 23 Feb 2016 10:39:54 +0000 Original-Received: from localhost ([127.0.0.1]:39256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYANm-0005mk-1W for submit@debbugs.gnu.org; Tue, 23 Feb 2016 05:39:54 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:35735) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYANj-0005mT-J0 for 20463@debbugs.gnu.org; Tue, 23 Feb 2016 05:39:52 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYANA-0003En-7N; Tue, 23 Feb 2016 11:39:16 +0100 In-Reply-To: (Filipp Gunbin's message of "Fri, 08 May 2015 14:18:24 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYANA-0003En-7N MailScanner-NULL-Check: 1456828757.76375@TKHioSla6MBuKJbRN9trnw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113561 Archived-At: Filipp Gunbin writes: > +(defun kill-matching-buffers-file-name (regexp) > + "Kill buffers whose visited file name matches the specified REGEXP." > + (interactive "sKill buffers visiting files matching this regular expression: ") > + (dolist (buffer (buffer-list)) > + (let ((file-name (buffer-file-name buffer))) > + (when (and file-name > + (string-match regexp file-name)) > + (kill-buffer-ask buffer))))) I'm not sure this sounds like a generally useful function... I tend to think that most users would just be using ibuffer for this stuff, and if you want to programmatically kill lots of buffers, you don't really want `kill-buffer-ask'. It falls between two chairs, I think. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no