emacs-devel
[Top][All Lists]
Advanced

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

Re: harmonize grep, occur and compile


From: Juri Linkov
Subject: Re: harmonize grep, occur and compile
Date: Sun, 25 Nov 2007 17:31:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> MK> grep, occur and compile all enables the user to jump to postions in
> MK> files or buffers. Occur has the ability to stay in the *occur*-buffer
> MK> while showing the occurence point is at using
> MK> occur-mode-display-occurrence. The line is centered in the buffer that
> MK> occured was started from.
>
> MK> It would be nice if this line could be highlighted as compile use to do.
>
> MK> This way the user can do a broad occur and then walk around in the
> MK> resulting buffer and cherrypick lines that he is interested in. It
> MK> will the be easy to find this line in its original context.
>
> I generally "walk around" the list of matches with next-error and
> previous-error which work in all three types of buffers you are
> interested in.  I've even mapped those to / and * on my keypad, I use
> them so often.  You can use those commands in the original buffer,
> without jumping to the list of matches.
>
> I hope this helps.  It doesn't answer your highlighting question, but I
> find I don't need highlighting when I just jump to the right location
> every time.

There is a special face `next-error'.  So why not to use it to highlight
occur matches as they are already highlighted for compile/grep?

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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