* Deleting matched lines by marking lines in *occur* buffer
@ 2013-07-09 14:25 Sivaram Neelakantan
2013-07-09 15:29 ` Thorsten Jolitz
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Sivaram Neelakantan @ 2013-07-09 14:25 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
When I run M-x occur and get the following output
--8<---------------cut here---------------start------------->8---
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
--8<---------------cut here---------------end--------------->8---
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?
sivaram
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Deleting matched lines by marking lines in *occur* buffer
2013-07-09 14:25 Deleting matched lines by marking lines in *occur* buffer Sivaram Neelakantan
@ 2013-07-09 15:29 ` Thorsten Jolitz
2013-07-09 16:33 ` J. David Boyd
2013-07-09 16:48 ` Jambunathan K
2 siblings, 0 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2013-07-09 15:29 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Deleting matched lines by marking lines in *occur* buffer
2013-07-09 14:25 Deleting matched lines by marking lines in *occur* buffer Sivaram Neelakantan
2013-07-09 15:29 ` Thorsten Jolitz
@ 2013-07-09 16:33 ` J. David Boyd
2013-07-09 16:48 ` Jambunathan K
2 siblings, 0 replies; 5+ messages in thread
From: J. David Boyd @ 2013-07-09 16:33 UTC (permalink / raw)
To: help-gnu-emacs
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?
>
> sivaram
> --
Check out moccurr-edit.el at http://www.emacswiki.org/emacs/moccur-edit.el
I think it does what you are looking for, but I have never tried it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Deleting matched lines by marking lines in *occur* buffer
2013-07-09 14:25 Deleting matched lines by marking lines in *occur* buffer Sivaram Neelakantan
2013-07-09 15:29 ` Thorsten Jolitz
2013-07-09 16:33 ` J. David Boyd
@ 2013-07-09 16:48 ` Jambunathan K
2013-07-10 2:14 ` Sivaram Neelakantan
2 siblings, 1 reply; 5+ messages in thread
From: Jambunathan K @ 2013-07-09 16:48 UTC (permalink / raw)
To: Sivaram Neelakantan; +Cc: help-gnu-emacs
You are looking for
all.el
Install it with
M-x list-packages
from GNU ELPA.
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?
>
> sivaram
> --
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-07-10 2:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-09 14:25 Deleting matched lines by marking lines in *occur* buffer Sivaram Neelakantan
2013-07-09 15:29 ` Thorsten Jolitz
2013-07-09 16:33 ` J. David Boyd
2013-07-09 16:48 ` Jambunathan K
2013-07-10 2:14 ` Sivaram Neelakantan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).