[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47918: M-x occur should jump to the first match
From: |
Juri Linkov |
Subject: |
bug#47918: M-x occur should jump to the first match |
Date: |
Wed, 21 Apr 2021 19:54:35 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> 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.