From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Narrow buffer to the results of an isearch? Date: Fri, 07 Oct 2005 20:43:02 +0200 Message-ID: <4346C1B6.3020803@student.lu.se> References: <9D8FBEAA-F9E5-46AA-B133-BE93C98A8424@csail.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128710750 14999 80.91.229.2 (7 Oct 2005 18:45:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 18:45:50 +0000 (UTC) Cc: Kevin Rodgers , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 20:45:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENxBv-0003sc-4S for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 20:43:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENxBu-0001ye-J0 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 14:43:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENxBd-0001y9-6K for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 14:43:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENxBb-0001x9-8v for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 14:43:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENxBb-0001x4-3d for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 14:43:15 -0400 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ENxBb-0002iX-2a for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 14:43:15 -0400 Original-Received: from [192.168.123.121] (83.249.203.167) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E2901399EF2; Fri, 7 Oct 2005 20:43:07 +0200 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Ryan Newton In-Reply-To: <9D8FBEAA-F9E5-46AA-B133-BE93C98A8424@csail.mit.edu> 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:30047 Archived-At: There is a page on http://www.emacswiki.org/ about occur and moccur that I believe could be interesting. If I remember correctly there is even a way to edit the results from an moccur search. Quite nice! -- Lennart Ryan Newton wrote: > Thanks, M-x occur is pretty good. I can see them all together, and > editing them isn't too hard. > > B.T. Raven, I would hesitate to try to sed-out a separate buffer for > fear of it being difficult to reinsert. (But by just including line > numbers in the sed output and reinserting at those line numbers, > maybe it wouldn't be so bad...) > > Thanks all, > --Ryan > > On Oct 7, 2005, at 12:50 PM, Kevin Rodgers wrote: > >> Ryan Newton wrote: >> >>> Maybe this is impossible, I certainly haven't found anything on it >>> yet. >>> What I want is to mask the current buffer to all lines matching an >>> search. Unfortunately I don't know if narrow-to-region can be >>> used for this, because the region is defined as a continuous area >>> of text between the mark and the point. >>> Has anyone hacked up support for discontinuous regions? Or some >>> other way that I can filter the buffer to only my lines of interest? >>> >> >> M-x occur >