Function: delete-region

delete-region is an interactive function defined in editfns.c.

Signature

(delete-region START END)

Documentation

Delete the text between START and END.

If called interactively, delete the region between point and mark. This command deletes buffer text without modifying the kill ring.

Other relevant functions are documented in the buffer group.

View in manual

Probably introduced at or before Emacs version 19.20.

Key Bindings

Shortdoc

;; buffer
(delete-region (point-min) (point-max))

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  validate_region (&start, &end);
  del_range (XFIXNUM (start), XFIXNUM (end));
  return Qnil;
}