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: How to search all open buffers? Date: Fri, 31 Aug 2007 18:22:55 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188609903 29877 80.91.229.12 (1 Sep 2007 01:25:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2007 01:25:03 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 01 03:25:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRHjK-00020a-Tq for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Sep 2007 03:24:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRHjK-0007X8-06 for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 21:24:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRHj5-0007Wm-FO for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 21:24:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRHj3-0007WV-QJ for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 21:24:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRHj3-0007WS-Iz for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 21:24:37 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IRHj3-0004lS-6n for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 21:24:37 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l811OYkQ031116 for ; Fri, 31 Aug 2007 19:24:34 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l7V9YpOh013189 for ; Fri, 31 Aug 2007 19:24:33 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-199.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3176546781188609769; Fri, 31 Aug 2007 18:22:49 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 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:47049 Archived-At: Wrt searching multiple buffers, in some cases only those visiting files, in other cases including those not visiting files: In Icicles, you can use C-c ' (`icicle-occur') to do either. A numeric prefix arg tells C-c ' to search multiple buffers, not just the current one. If the arg is 99, then only buffers visiting files are candidates: C-99 C-c '. Your minibuffer input filters the candidates when choosing the buffers to search. You can type a regexp that matches a particular file suffix, to limit the candidates to file buffers in a given mode. You can use C-! to select all buffers that match your input, or you can choose individual buffers that match. If you often want to search the same set of buffers or files (e.g. for a project), then you can define the set once, save it, and reuse it later. You can save it persistently or not. After you have chosen the buffers to search, you type a pattern (regexp) that you want to search for. You can change the pattern on the fly - the search hits are updated incrementally as you type. C-c ` (`icicle-search') is more general than C-c '. Using it you can search multiple buffers, multiple files, or multiple regions in different buffers. You can save such sets of regions for later reuse. With C-c `, you first parse the target buffers, files, or regions into search segments using a preliminary regexp, instead of just searching within all lines as for `occur'. You then search within the segments by typing a pattern (regexp) to match dynamically (just as for C-c ').