From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Newton Newsgroups: gmane.emacs.help Subject: Re: Narrow buffer to the results of an isearch? Date: Fri, 7 Oct 2005 13:18:30 -0400 Message-ID: <9D8FBEAA-F9E5-46AA-B133-BE93C98A8424@csail.mit.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128705820 30790 80.91.229.2 (7 Oct 2005 17:23:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 17:23:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 19:23:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENvuu-0006OK-Fp for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 19:21:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvut-0000mN-4R for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 13:21:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENvuh-0000kK-R1 for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 13:21:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENvug-0000hn-BV for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 13:21:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvug-0000hV-6d for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 13:21:42 -0400 Original-Received: from [72.14.204.194] (helo=qproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ENvug-0006UC-6I for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 13:21:42 -0400 Original-Received: by qproxy.gmail.com with SMTP id e14so799993qbc for ; Fri, 07 Oct 2005 10:21:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:subject:date:to:x-mailer:from:sender; b=Rj2kY3CgBfs4lbh/Y2zhcJctMQ05rbyspzTigB+luTTK1M6wPTJi0hnueBOtH0Ig5vXxx44iZBchuRv+cz/FRHphm4XN7sRe0gpRLJ8BYK0WIRE4C7UupreJFl/mVwm66KASs9RMFVarjm6BqyBadS2FKfofTrk7NHbcSKffo9Q= Original-Received: by 10.65.97.16 with SMTP id z16mr929573qbl; Fri, 07 Oct 2005 10:21:39 -0700 (PDT) Original-Received: from ?128.30.92.85? ( [128.30.92.85]) by mx.gmail.com with ESMTP id e16sm1647944qba.2005.10.07.10.21.38; Fri, 07 Oct 2005 10:21:39 -0700 (PDT) In-Reply-To: Original-To: Kevin Rodgers X-Mailer: Apple Mail (2.734) 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:30042 Archived-At: 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 > > -- > Kevin Rodgers > > > > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >