I am trying to make projectile-multi-occur
to work with the symbol at point.
I have done that for occur
already, this works:
(defun occur-symbol-at-point ()
(interactive)
(let ((sym (thing-at-point 'symbol)))
(funcall 'occur sym)))
So now I tried to do the exact same thing with projectile-multi-occur
, this does NOT work:
(defun projectile-multi-occur-symbol-at-point ()
(interactive)
(let ((sym (thing-at-point 'symbol)))
(funcall 'projectile-multi-occur sym)))
Calling projectile-multi-occur
with M-x
works as I expect.
With the function above, I only get an *Occur*
buffer, with only the search term, the same amount of times as there are hits.
What is wrong with my function definition?