in reply to
Re: Emacs shows xrefs in code but needs an interface that's good for humans
in thread Emacs shows xrefs in code but needs an interface that's good for humans
I've found this little gem makes occur quite a bit more useful:
(defun isearch-occur ()
"Invoke `occur' from within isearch."
(let ((case-fold-search isearch-case-fold-search))
(occur (if isearch-regexp isearch-string (regexp-quote isearch-str
(define-key isearch-mode-map (kbd "C-o") 'isearch-occur)
Then you can isearch to the word you want, hit C-w to grab the rest of it, then C-o to get a list of occurrences.