running any destructive (undoable) action manually (not by undo/redo)
  now dumps the redo stack
added ppdeftemplate macro for front-end template printing