help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Narrow buffer to the results of an isearch?


From: Lennart Borgman
Subject: Re: Narrow buffer to the results of an isearch?
Date: Fri, 07 Oct 2005 20:43:02 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]