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

From: Juri Linkov <[email-masked]>
Date: Wed, 21 Apr 2021 19:54:35 +0300

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

There is 'compilation-auto-jump-to-first-error',
but it doesn't visit matches.

> If you want to do this, I recommend:
>
>     (add-hook 'occur-hook #'next-error)

This is a nice solution to immediately visit matches.