From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sivaram Neelakantan Newsgroups: gmane.emacs.help Subject: Deleting matched lines by marking lines in *occur* buffer Date: Tue, 09 Jul 2013 19:55:22 +0530 Message-ID: <87r4f7lsj1.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373379982 28722 80.91.229.3 (9 Jul 2013 14:26:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 14:26:22 +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 16:26:21 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 1UwYrw-0004Gv-3H for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 16:26:16 +0200 Original-Received: from localhost ([::1]:55971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwYrv-0006Hz-LS for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 10:26:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwYrJ-0005px-9j for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 10:25:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwYrI-00051N-3v for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 10:25:37 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwYrH-0004xN-UB for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 10:25:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UwYrG-0003YN-Bd for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 16:25:34 +0200 Original-Received: from 122.172.238.196 ([122.172.238.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jul 2013 16:25:34 +0200 Original-Received: from nsivaram.net by 122.172.238.196 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jul 2013 16:25:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 122.172.238.196 User-Mail-Address: nsivaram.net@gmail.com User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (windows-nt) Cancel-Lock: sha1:Wly9VIpZQzcAG8Zm9O5RmxE4IWQ= 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:92026 Archived-At: 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 --