Function: buffer-name
buffer-name is a function defined in buffer.c.
Signature
(buffer-name &optional BUFFER)
Documentation
Return the name of BUFFER, as a string.
BUFFER defaults to the current buffer. Return nil if BUFFER has been killed.
Other relevant functions are documented in the buffer group.
Probably introduced at or before Emacs version 1.10.
Shortdoc
;; buffer
(buffer-name)
=> " *temp*"
Source Code
// Defined in /usr/src/emacs/src/buffer.c
{
return BVAR (decode_buffer (buffer), name);
}