unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* harmonize grep, occur and compile
@ 2007-11-23 11:49 Matzi Kratzi
  2007-11-23 18:45 ` Ted Zlatanov
  0 siblings, 1 reply; 3+ messages in thread
From: Matzi Kratzi @ 2007-11-23 11:49 UTC (permalink / raw)
  To: emacs-devel; +Cc: matzikratzi

grep, occur and compile all enables the user to jump to postions in
files or buffers. Occur has the ability to stay in the *occur*-buffer
while showing the occurence point is at using
occur-mode-display-occurrence. The line is centered in the buffer that
occured was started from.

It would be nice if this line could be highlighted as compile use to do.

This way the user can do a broad occur and then walk around in the
resulting buffer and cherrypick lines that he is interested in. It
will the be easy to find this line in its original context.

Thanks for emacs anyway.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: harmonize grep, occur and compile
  2007-11-23 11:49 harmonize grep, occur and compile Matzi Kratzi
@ 2007-11-23 18:45 ` Ted Zlatanov
  2007-11-25 15:31   ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: Ted Zlatanov @ 2007-11-23 18:45 UTC (permalink / raw)
  To: emacs-devel

On Fri, 23 Nov 2007 12:49:13 +0100 "Matzi Kratzi" <matzikratzi@gmail.com> wrote: 

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.

Ted

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: harmonize grep, occur and compile
  2007-11-23 18:45 ` Ted Zlatanov
@ 2007-11-25 15:31   ` Juri Linkov
  0 siblings, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2007-11-25 15:31 UTC (permalink / raw)
  To: Ted Zlatanov; +Cc: emacs-devel

> 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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-25 15:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-23 11:49 harmonize grep, occur and compile Matzi Kratzi
2007-11-23 18:45 ` Ted Zlatanov
2007-11-25 15:31   ` Juri Linkov

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).