From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Negative occur Date: Wed, 28 Nov 2007 02:53:40 -0800 (PST) Organization: http://groups.google.com Message-ID: <205e9241-c824-46b0-af01-26ad3fcd0d97@y20g2000hsy.googlegroups.com> References: <85aboybrgo.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196250051 13070 80.91.229.12 (28 Nov 2007 11:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2007 11:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 12:40:59 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IxLHm-0004YH-4x for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 12:40:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxLHW-0003m7-R7 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 06:40:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!y20g2000hsy.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 81.182.18.125 Original-X-Trace: posting.google.com 1196247220 3071 127.0.0.1 (28 Nov 2007 10:53:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 28 Nov 2007 10:53:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y20g2000hsy.googlegroups.com; posting-host=81.182.18.125; posting-account=ksnUxwoAAAC32CfuC8oi8NKZxrTcNtdm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.10) Gecko/20071115 Firefox/2.0.0.10,gzip(gfe),gzip(gfe) Content-Disposition: inline Original-Xref: shelby.stanford.edu gnu.emacs.help:154195 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49611 Archived-At: On Nov 28, 11:21 am, David Kastrup wrote: > "spamfilteracco...@gmail.com" writes: > > Is there a command like occur which shows non-matching lines? It would > > come in handy for me for the work I'm doing. > > > It's a useful a feature and not hard to implement, so I'm sure it's > > already in Emacs in some form only I'm overlooking it. > > You could try running "occur" with the pattern "^" (which matches > every line), then prune the results with M-x delete-matching-lines RET > Yep, there are workarounds. :) But it seems a very basic feature, so I'd be surprised if Emacs didn't have it. We have keep-lines and flush-lines after all, so it would be logical to have the same for occur.