buffer-enable-undo

buffer-enable-undo is an interactive built-in function in `C source code'.
(buffer-enable-undo &optional BUFFER)
Start keeping undo information for buffer BUFFER.
No argument or nil as argument means do this for the current buffer.