From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Deleting matched lines by marking lines in *occur* buffer Date: Tue, 09 Jul 2013 17:29:55 +0200 Message-ID: <87txk3iwek.fsf@gmail.com> References: <87r4f7lsj1.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373383829 10475 80.91.229.3 (9 Jul 2013 15:30:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 15:30:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 17:30:31 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UwZs6-0006Ui-EN for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 17:30:30 +0200 Original-Received: from localhost ([::1]:33771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwZs5-0003qf-Sd for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 11:30:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwZrp-0003qD-FD for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 11:30:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwZrn-0003jE-Gg for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 11:30:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwZrn-0003j2-8o for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 11:30:11 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UwZrh-00064m-IM for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 17:30:05 +0200 Original-Received: from g231234163.adsl.alicedsl.de ([92.231.234.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jul 2013 17:30:05 +0200 Original-Received: from tjolitz by g231234163.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jul 2013 17:30:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231234163.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:j3vpC8fh4ybZHU4rGLuvMHsfJIM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92028 Archived-At: Sivaram Neelakantan 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