Elisp: Enable Undo in Buffer

By Xah Lee. Date: . Last updated: .

Enable Undo in Buffer

when writing elisp command, sometimes your command generates a output buffer. You can enable undo in that buffer, so user who might use that buffer will have undo.

buffer-enable-undo

(buffer-enable-undo &optional BUFFER)

enable undo.

buffer-disable-undo

disable undo.

Reference

2014-05-30 Thanks to jcs at http://irreal.org/blog/?p=2729