[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting matched lines by marking lines in *occur* buffer
From: |
Thorsten Jolitz |
Subject: |
Re: Deleting matched lines by marking lines in *occur* buffer |
Date: |
Tue, 09 Jul 2013 17:29:55 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
Sivaram Neelakantan <nsivaram.net@gmail.com> writes:
Hi,
> When I run M-x occur and get the following output
>
> 5 matches for "\.txt" in buffer: indices.conf
> 14:cnx_midcap_baseline.txt
> 16:cnx_nifty_jr_baseline.txt
> 18:sp_cnx_500_baseline.txt
> 20:sp_cnx_defty_baseline.txt
> 22:sp_cnx_nifty_baseline.txt
>
> is there a way to mark the lines in this buffer and expunge the lines
> in the corresponding source buffer? A dired like support would be
> useful. I did check the emacswiki and none of the other suggested
> packages seem to have support for this sort of thing.
>
> Any suggestions? I suppose there's delete-matching-lines but wouldn't
> it also be useful in the occur buffer?
maybe the answers to this question help:
http://stackoverflow.com/questions/8334263/in-emacs-how-to-replace-only-on-matching-lines
--
cheers,
Thorsten