Function: buffer-end

buffer-end is a byte-compiled function defined in lisp.el.gz.

Signature

(buffer-end ARG)

Documentation

Return the "far end" position of the buffer, in direction ARG.

If ARG is positive, that's the end of the buffer. Otherwise, that's the beginning of the buffer.

View in manual

Probably introduced at or before Emacs version 21.1.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/lisp.el.gz
(defun buffer-end (arg)
  "Return the \"far end\" position of the buffer, in direction ARG.
If ARG is positive, that's the end of the buffer.
Otherwise, that's the beginning of the buffer."
  (declare (ftype (function ((or number marker)) integer))
           (side-effect-free error-free))
  (if (> arg 0) (point-max) (point-min)))