windmove-do-window-select

windmove-do-window-select is a compiled Lisp function in `windmove.el'.

(windmove-do-window-select DIR &optional ARG WINDOW)

Move to the window at direction DIR.
DIR, ARG, and WINDOW are handled as by `windmove-other-window-loc'.
If no window is at direction DIR, an error is signaled.