some refactoring to implement goto-sym
And bound to M-.