server-switch-buffer

server-switch-buffer is a compiled Lisp function in `server.el'.

(server-switch-buffer &optional NEXT-BUFFER KILLED-ONE FILEPOS)

Switch to another buffer, preferably one that has a client.
Arg NEXT-BUFFER is a suggestion; if it is a live buffer, use it.

KILLED-ONE is t in a recursive call if we have already killed one
temp-file server buffer. This means we should avoid the final
"switch to some other buffer" since we've already effectively
done that.

FILEPOS specifies a new buffer position for NEXT-BUFFER, if we
visit NEXT-BUFFER in an existing window. If non-nil, it should
be a cons cell (LINENUMBER . COLUMNNUMBER).