Arbortext Command Language > Functions by Alphabetical Listing > undo_menu_description_clear
  
undo_menu_description_clear
[0|1] = undo_menu_description_clear([doc])
This function clears the menu label for the next undoable operation on document doc. If doc is not specified, the value of current_doc is used. This function should only be called to clear a label set by a previous call to undo_menu_description.
This function returns 1 if the undo menu label was cleared.
An example follows:
local undoMsg = undo_menu_description("Great Operation", doc);
...
local ret = great_operation_action(...);
# If the above failed so doc was not modified, then clear the
# undo label (if not, it will be applied to the next operation)
if ((! ret) && undoMsg) {
undo_menu_description_clear(doc);
}
Related topic
tbl_edit_open function