Subject: Re: bug#47918: M-x occur should jump to the first match

From: Stefan Kangas <[email-masked]>
Date: Tue, 20 Apr 2021 15:24:58 -0500

tags 47918 wontfix notabug
close 47918
thanks

積丹尼 Dan Jacobson <[email-masked]> writes:

> occur is an interactive compiled Lisp function in ‘replace.el’.
>
> Odd that it doesn't jump to the first match like other similar emacs
> functions do.
>
> So it should, unless the user disables it via a variable.

That would break existing workflows.  Also, `rgrep' and `compile'
doesn't jump to the first match, so I don't see why `occur' should be
different.

If you want to do this, I recommend:

    (add-hook 'occur-hook #'next-error)

Closing as wontfix.