[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Narrow buffer to the results of an isearch?
From: |
David Hansen |
Subject: |
Re: Narrow buffer to the results of an isearch? |
Date: |
Fri, 07 Oct 2005 19:16:26 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
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