Index: trunk/src/undo.c =================================================================== --- trunk/src/undo.c (revision 13478) +++ trunk/src/undo.c (revision 13479) @@ -241,6 +241,17 @@ return (Locked); } +uundo_serial_t pcb_undo_serial(void) +{ + return pcb_uundo.serial; +} + + +void pcb_undo_truncate_from(uundo_serial_t sfirst) +{ + uundo_list_truncate_from(&pcb_uundo, sfirst); +} + int undo_check(void) { const char *res = uundo_check(&pcb_uundo, NULL); Index: trunk/src/undo.h =================================================================== --- trunk/src/undo.h (revision 13478) +++ trunk/src/undo.h (revision 13479) @@ -45,6 +45,10 @@ void pcb_undo_unlock(void); pcb_bool pcb_undoing(void); +uundo_serial_t pcb_undo_serial(void); +void pcb_undo_truncate_from(uundo_serial_t sfirst); + + /* Returns 0 if undo integrity is not broken */ int undo_check(void);