Next: generate-new-buffer-name, Previous: get-buffer, Up: Buffer Names and File Names [Index]
Return most recently select buffer other than BUFFER. This is done by scanning the selected or specified frame’s buffer list first, followed by the list of all buffers.
Return a buffer other than this one if possible; ignore this buffer completely unless it is a live buffer.
Buffers not visible in windows are preferred to visible buffers, unless optional second argument VISIBLE-OK is non-nil.
if non-nil, and is a live frame, use that frame’s buffer list, not the selected frame’s buffer list.
return a found buffer; if no other buffer exists, return the ‘*scratch*’ buffer, and create it if necessary.