Function: current-buffer

current-buffer is a function defined in buffer.c.

Signature

(current-buffer)

Documentation

Return the current buffer as a Lisp object.

Other relevant functions are documented in the buffer group.

View in manual

Probably introduced at or before Emacs version 15.

Shortdoc

;; buffer
(current-buffer)
    e.g. => #<buffer shortdoc.el>

Source Code

// Defined in /usr/src/emacs/src/buffer.c
{
  register Lisp_Object buf;
  XSETBUFFER (buf, current_buffer);
  return buf;
}