Undo is a form of backward error recovery which reverses the effect of the previous command or action. In a word processor pressing 'undo' after deleting text will restore the text. This sounds simple, but there are complications.
The unit on which undo works varies between systems. Often, but not always it focuses on actions that change the underlying state, ignoring navigation or changes in view style which only affect the transient interaction state. Sometimes basic actions are grouped, for example undoing the typing of a whole word rather than character by character. For any meaningful system it is not possible to consistently undo undo itself, although toggle undo (below) gets close.
There are two principle forms of undo in practical use:
It has been proved that, with fairly basic assumptions, these are the only two kinds of meaningful undo.
- The system stores the last state and flips between that and the current state when undo is pressed.
- The system keeps a stack of previous states, allowing the user to use undo to go backwards in time or use 'redo' to go forwards.
- toggle undo
- stack undo
It has been proved that, with fairly basic assumptions, these are the only two kinds of meaningful undo.
Used in glossary entries: backward error recovery
Links:
alandix.com: Undo and History (Alan Dix – research topics)
