Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## undo-command

Arguments: window

Modifies window so that it is in the state that it was in just before the most recent edit was made by the user. The window may be (1) a standalone `text-edit-pane`, (2) the `widget-window` of a `multi-line-editable-text`, `editable-text`, or typable `combo-box` widget (as returned by calling window on the widget), or (3) a form window in an IDE project. In the IDE, the Edit | Undo command calls this function on the selected window.

When the window is a `text-edit-pane` (on the Windows platform), multiple calls to this function with no intervening text editing will undo successive edits, and redo-command must be used to redo each edit that was undone. For all other windows, a second call to this function with no intervening editing will redo the single undo that can be done.

In a form window, this will undo the most recent change to a property of the form itself, or undo the creation or deletion of a widget on the form. In other windows it affects text editing.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version