Package: gtk

Accessor gtk:text-buffer-enable-undo

Lambda List

gtk:text-buffer-enable-undo (object)

Syntax

(gtk:text-buffer-cursor-position object) => setting
(setf (gtk:text-buffer-enable-undo object) setting)

Arguments

object -- a gtk:text-buffer object
setting -- true to enable undo

Details

The accessor for the enable-undo slot of the gtk:text-buffer class gets or sets whether the text buffer is saving modifications to the text buffer to allow for undo and redo actions. If enabled, the user will be able to undo the last number of actions up to the gtk:text-buffer-max-undo-levels value.

See the gtk:text-buffer-begin-irreversible-action and gtk:text-buffer-end-irreversible-action functions to create changes to the text buffer that cannot be undone.
 

See also

2025-09-28