[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: next-error-highlight = t - highlighting doesn't stay until youmoveto

From: Stefan Monnier
Subject: Re: next-error-highlight = t - highlighting doesn't stay until youmoveto the next locus
Date: Mon, 26 Mar 2007 11:34:22 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

> The doc string description of the value t, and the behavior I prefer, is
> that the highlighting goes away when it is replaced by the next hit visit
> (`next-error').  Yes, this does always leave one occurrence highlighted.
> That doesn't bother me. If it did, I would make it go away by
> re-fontifying the buffer.

Since next-error uses an overlay, re-fontifying wouldn't help.

> I've been using a similar highlighting in my own code for years, and I in
> fact leave all of the visited occurences highlighted, "forever".
> That makes it very easy to compare bits of code - a bit like `occur'
> in context.

>> To make it bearable, you'd need at the very least a special way to make
>> it go away when you don't want it any more.

> Yes, I have a key that removes such highlighting (in the case of my own
> highlighting, which is of each visited hit).

But then it looks more and more like a new feature, i.e. not fit for Emacs-22.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]