Function: buffer-disable-undo
buffer-disable-undo is an interactive and byte-compiled function
defined in simple.el.gz.
Signature
(buffer-disable-undo &optional BUFFER)
Documentation
Make BUFFER stop keeping undo information.
No argument or nil as argument means do this for the current buffer.
Probably introduced at or before Emacs version 19.23.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun buffer-disable-undo (&optional buffer)
"Make BUFFER stop keeping undo information.
No argument or nil as argument means do this for the current buffer."
(interactive)
(with-current-buffer (if buffer (get-buffer buffer) (current-buffer))
(setq buffer-undo-list t)))