Function: buffer-substring-no-properties

buffer-substring-no-properties is a function defined in editfns.c.

Signature

(buffer-substring-no-properties START END)

Documentation

Return the characters of part of the buffer, without the text properties.

The two arguments START and END are character positions; they can be in either order.

Other relevant functions are documented in the buffer group.

View in manual

Probably introduced at or before Emacs version 19.29.

Shortdoc

;; buffer
(buffer-substring-no-properties (point-min) (+ (point-min) 10))
    => "Buffer Bas"

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  register ptrdiff_t b, e;

  validate_region (&start, &end);
  b = XFIXNUM (start);
  e = XFIXNUM (end);

  return make_buffer_string (b, e, 0);
}