window-normalize-buffer-to-switch-to

window-normalize-buffer-to-switch-to is a compiled Lisp function in `window.el'.

(window-normalize-buffer-to-switch-to BUFFER-OR-NAME)

Normalize BUFFER-OR-NAME argument of buffer switching functions.
If BUFFER-OR-NAME is nil, return the buffer returned by
`other-buffer'. Else, if a buffer specified by BUFFER-OR-NAME
exists, return that buffer. If no such buffer exists, create a
buffer with the name BUFFER-OR-NAME and return that buffer.