The find-function-at-point
command finds a function and displays its definition in the other window, while moving point to the other window as well.
I'd like to have a version of find-function-at-point
that opens the function definition in the other window, but leaves point in the current window.
I thought I could accomplish this with save-excursion
in a lambda expression as follows:
(lambda ()
(interactive)
(save-excursion)
(find-function-at-point))))
However, this doesn't seem to work. Point remains in the other window.
My understanding of save-excursion
is that it should restore point and mark after the body of save-excursion
is evaluated. What am I missing here?