Sets the text in the buffer.
This is roughly equivalent to calling delete_text and insert_text.
Note that n_chars is in characters, not in bytes.
n_chars
a EntryBuffer
the new text
the number of characters in text, or -1
text