Previous: , Up: Positions   [Index]


7.4.4.5 buffer-size

Function: buffer-size &optional buffer

Return the number of characters in the current buffer, without taking into account narrowing.

BUFFER

if non-nil, return the number of characters in this buffer.

To count the number of characters in the accessible portion of the current buffer, use (- (point-max) (point-min)), and to count the number of characters in some other BUFFER, use (with-current-buffer BUFFER (- (point-max) (point-min))).