Lines Matching defs:undo

96 	   replaceAll, undo, ignore, ignoreAll, add, addUncap, suspend,
133 int format_mode; /* to undo correctly */
392 ispell_undo *undo = XtNew(ispell_undo);
395 XeditPrintf("Undo: Dictionary changed. Previous undo information lost.\n");
400 undo->next = NULL;
401 undo->repeat = False;
402 undo->terse = ispell.undo_terse_mode;
403 undo->format = ispell.format_mode;
404 if ((undo->prev = ispell.undo_head) != NULL)
405 undo->prev->next = undo;
407 undo->prev = NULL;
410 ispell.undo_base = undo;
411 XtSetSensitive(ispell.undo, True);
424 ispell.undo_head = undo;
1260 XtSetSensitive(ispell.undo, False);
1452 ispell_undo *undo, *pundo;
1454 undo = pundo = ispell.undo_base;
1455 while (undo) {
1456 undo = undo->next;
1460 pundo = undo;
1465 XtSetSensitive(ispell.undo, False);
1665 ispell_undo *undo = ispell.undo_head;
1667 if ((!ispell.lock && ispell.stat) || !undo)
1677 if (undo->terse != ispell.terse_mode)
1678 IspellSetTerseMode(undo->terse);
1680 if (undo->format != ispell.format_info->value) {
1681 struct _ispell_format *fmt = &ispell_format[undo->format];
1685 if (undo->undo_count > 0 && !undo->repeat) {
1688 enable_redisplay = undo->undo_count > 1;
1691 while (undo->undo_count--)
1697 else if (undo->undo_count < 0) {
1698 if (undo->undo_str)
1699 (void)IspellIgnoredWord(undo->undo_str, REMOVE, -undo->undo_count);
1701 else if (undo->undo_str) {
1702 if (!undo->repeat)
1703 IspellIgnoredWord(undo->undo_str, REMOVE, 0);
1707 ispell.right = ispell.left = undo->undo_pos);
1712 if (undo->repeat) {
1717 if (undo->repeat > 1) {
1724 ispell.right = (XawTextPosition)undo->undo_count;
1726 XtSetArg(args[0], XtNlabel, undo->undo_str);
1729 strrchr(undo->undo_str, ' ') + 1);
1762 if (undo->prev)
1763 undo->prev->next = NULL;
1764 ispell.undo_head = undo->prev;
1765 if (undo == ispell.undo_base) {
1768 XtSetSensitive(ispell.undo, False);
1770 if (undo->undo_str)
1771 XtFree(undo->undo_str);
1772 XtFree((char*)undo);
2068 ispell.undo = XtCreateManagedWidget("undo", commandWidgetClass,
2070 XtAddCallback(ispell.undo, XtNcallback, UndoIspell, NULL);