I'm using outline-mode
(org-mode mostly) in emacs, and use grep-mode
to search.
What annoys me is when I follow the links in the grep buffer, the
folded texts do not unfold. Is there a way to automate that?
A similar problem is to auto-unfold when goto-line
is called, this
can be achieved by define an advice to the goto-line function,
however, defadvice for goto-line
and goto-char
does not work for
mouse-events.
More generally, what happens when I click a link in emacs ? I tried to track down the function stack but can not find the source due to the event-mode used in emacs.