setText
Replaces the whole buffer with text.
Parameters
text
the buffer's new content, carrying no attributes of its own; empty text clears it.
See also
Replaces the whole buffer with text carrying attributes.
Parameters
text
the buffer's new content, as one run; empty text clears it.
attributes
the attributes that run carries.