Function: buffer-disable-undo

Make BUFFER stop keeping undo information.
No argument or nil as argument means do this for the current buffer.