From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: can I batch select buffers in buffer menu mode? Date: Wed, 20 Jul 2005 21:31:52 -0700 Message-ID: References: <42DBECF7.1020705@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121921601 18572 80.91.229.2 (21 Jul 2005 04:53:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2005 04:53:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 06:53:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DvT2n-0007U6-0O for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jul 2005 06:52:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DvT4r-0005a7-90 for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jul 2005 00:54:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DvT07-00048O-EM for help-gnu-emacs@gnu.org; Thu, 21 Jul 2005 00:49:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DvSzs-00042I-10 for help-gnu-emacs@gnu.org; Thu, 21 Jul 2005 00:49:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DvSzr-0003wc-Qb for help-gnu-emacs@gnu.org; Thu, 21 Jul 2005 00:49:23 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DvSsV-00011M-Df for help-gnu-emacs@gnu.org; Thu, 21 Jul 2005 00:41:47 -0400 Original-Received: from agminet01.oracle.com (localhost [127.0.0.1]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j6L4VsnD002997 for ; Wed, 20 Jul 2005 23:31:54 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j6L4Vr2G002981 for ; Wed, 20 Jul 2005 23:31:54 -0500 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j6L4VreA003732 for ; Wed, 20 Jul 2005 22:31:53 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-65-66.vpn.oracle.com [141.144.65.66]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j6L4VqWb003725 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 20 Jul 2005 22:31:53 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <42DBECF7.1020705@student.lu.se> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28038 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28038 > Is there a way I can specify a pattern and mark all > matching buffers for deletion? For instance, it'd be > great if I could say "M-x mark-matching ~/src/2.2/*.cpp" > to mark all buffers visiting files in that dir for > removal. >For buffers (in *Buffer List*): >I don't think there is a command to mark buffers via regexp, >but you could write one! Does not ibuffer has support for this? The help text says: % n - mark buffers by their name, using a regexp The original question was about marking buffers in *Buffer List* for deletion. I'd say that should be pretty easy to code, by looking at 1) the code in buff-menu.el and 2) the code for the similar Dired function, `dired-mark-files-regexp' (in dired.el). Do something similar to `dired-mark-files-regexp', and integrate it within `Buffer-menu-mode'. HTH, Drew