read-buffer-to-switch

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

(read-buffer-to-switch PROMPT)

Read the name of a buffer to switch to, prompting with PROMPT.
Return the name of the buffer as a string.

This function is intended for the `switch-to-buffer' family of
commands since these need to omit the name of the current buffer
from the list of completions and default values.