From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: david@adboyd.com (J. David Boyd) Newsgroups: gmane.emacs.help Subject: Re: Deleting matched lines by marking lines in *occur* buffer Date: Tue, 09 Jul 2013 12:33:02 -0400 Message-ID: References: <87r4f7lsj1.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373387617 23359 80.91.229.3 (9 Jul 2013 16:33:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 16:33:37 +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 18:33:38 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 1UwarC-0005uX-C1 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 18:33:38 +0200 Original-Received: from localhost ([::1]:49541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwarB-00028o-SL for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 12:33:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwaqu-0001yp-OF for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 12:33:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uwaqr-0002a0-Na for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 12:33:20 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwaqr-0002Zn-Gi for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 12:33:17 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uwaqp-0005Y6-7p for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 18:33:15 +0200 Original-Received: from 169.15.137.27 ([169.15.137.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jul 2013 18:33:15 +0200 Original-Received: from david by 169.15.137.27 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jul 2013 18:33:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 169.15.137.27 User-Agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.3 (cygwin) Cancel-Lock: sha1:7X4yd1fGie5rFYLCJa/C49UGSHA= 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:92029 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? > > 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.