From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.help Subject: Re: Narrow buffer to the results of an isearch? Date: Fri, 07 Oct 2005 18:34:42 +0200 Message-ID: <20051007183138.233E.SLAWOMIR.NOWACZYK.847@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1128703092 21206 80.91.229.2 (7 Oct 2005 16:38:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 16:38:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 18:38:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENvBu-00055Z-QU for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 18:35:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvBu-0006gZ-92 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 12:35:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENvBQ-0006Qk-Hf for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:34:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENvBO-0006OZ-CD for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:34:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvBO-0006OH-3h for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:34:54 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ENvBN-0003jL-V2 for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:34:54 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.12.11/8.12.11/perf-jw-tr) with ESMTP id j97GYmZo000732 for ; Fri, 7 Oct 2005 18:34:48 +0200 (CEST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.21.04 [en] 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:30033 Archived-At: On Fri, 07 Oct 2005 11:39:18 -0400 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? Depending on what do you want to do with the buffer, M-x occur might work for you. And there is also an outline mode which you could look into. -- Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) You can get a lot more done with a kind word and a gun than with a kind word alone.