all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Negative occur
Date: Wed, 28 Nov 2007 12:54:23 -0600	[thread overview]
Message-ID: <86tzn62obk.fsf@lifelogs.com> (raw)
In-Reply-To: mailman.4263.1196269422.18990.help-gnu-emacs@gnu.org

On Wed, 28 Nov 2007 09:03:17 -0800 "Drew Adams" <drew.adams@oracle.com> wrote: 

DA> On Wed, 28 Nov 2007 11:21:43 +0100 David Kastrup <dak@gnu.org> wrote: 
>> > You could try running "occur" with the pattern "^" (which matches
>> > every line), then prune the results with M-x delete-matching-lines RET

DA> I realize that your suggestion is that this be added to Emacs. I agree.

DA> FYI - In Icicles, just do this:  C-' foobar C-~

DA> That shows and lets you visit all lines that do not match the regexp
DA> "foobar". `C-'' is `icicle-occur'. `C-~' complements the current set of
DA> matches.

Both solutions will be slower on a large buffer than they should be.  A
real inversion parameter, either as a predicate function or a variable,
passed lexically or as a parameter to the occur-engine function call, is
necessary.  A predicate function is probably best as it can express
transformations more complex than identity and negation.

Ted

       reply	other threads:[~2007-11-28 18:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4263.1196269422.18990.help-gnu-emacs@gnu.org>
2007-11-28 18:54 ` Ted Zlatanov [this message]
2007-11-28 22:52   ` Negative occur Drew Adams
     [not found] <mailman.4315.1196357177.18990.help-gnu-emacs@gnu.org>
2007-11-29 18:27 ` spamfilteraccount
2007-12-05 17:44   ` Mathias Dahl
     [not found] <mailman.4275.1196290389.18990.help-gnu-emacs@gnu.org>
2007-11-29 15:58 ` Ted Zlatanov
2007-11-29 17:25   ` Drew Adams
2007-11-28 10:15 spamfilteraccount
2007-11-28 10:21 ` David Kastrup
2007-11-28 10:53   ` spamfilteraccount
2007-11-28 17:03     ` Drew Adams
2007-11-29 11:44     ` spamfilteraccount

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86tzn62obk.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.