From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Narrow buffer to the results of an isearch? Date: Fri, 07 Oct 2005 19:16:26 +0200 Organization: disorganized Message-ID: <87psqhfdsl.fsf@robotron.ath.cx> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128706207 32150 80.91.229.2 (7 Oct 2005 17:30:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 17:30:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 19:30:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENvzc-00085T-Rh for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 19:26:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvzc-000397-54 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 13:26:48 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-X-Trace: news.uni-berlin.de aw2Mx6cBreA1rLP3PItH9A/hxOclUa54VE0KYk6N1eag== X-Orig-Path: robotron.ath.cx!news Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:vXyOMUuMIZQNN2TMZgi1rMXDdPc= Original-Xref: shelby.stanford.edu gnu.emacs.help:134465 Original-To: help-gnu-emacs@gnu.org 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:30043 Archived-At: On Fri, 7 Oct 2005 11:39:18 -0400 Ryan Newton wrote: > 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. Maybe this helps: http://www.emacswiki.org/cgi-bin/wiki/HideLines (defun hide-non-matching-lines (search-text) "Hide lines that don't match the specified regexp." ... David