The undo print function that is mentioned in the documentation
http://opencircuitdesign.com/magic/commandref/undo.html is missing:
% help undo
Global Commands
---------------
undo [count] undo commands
Layout Commands
---------------
% undo count
Option must be a count (integer)
% undo print count
Usage: undo print count
% undo print
Option must be a count (integer)
%