1. A method for preserving metadata during an undo operation at a client computer, the method comprising: modifying, at the client computer, a first section of a document on a word processing application on a client computer, the modifying a first section of a document comprising performing one or more user actions in the first section of the document; while modifying the first section of the document, receiving metadata, at the client computer, for a second section of the document, the second section of the document being different than the first section of the document; after receiving the metadata for the second section of the document, inserting the metadata in the second section of the document; and after the metadata is inserted in the second section of the document, performing an undo operation on the word processing application, wherein the undo operation includes the steps of: removing the metadata, at the client computer, for the second section of the document; undoing the last user action of the one or more user actions in the first section of the document; and restoring the metadata for the second section of the document wherein removing the metadata at the client computer for the second section of the document comprises removing the metadata from a program stack and storing the metadata in an area of memory on the client computer that is different from the program stack.
1. A method for preserving metadata during an undo operation at a client computer, the method comprising: modifying, at the client computer, a first section of a document on a word processing application on a client computer, the modifying a first section of a document comprising performing one or more user actions in the first section of the document; while modifying the first section of the document, receiving metadata, at the client computer, for a second section of the document, the second section of the document being different than the first section of the document; after receiving the metadata for the second section of the document, inserting the metadata in the second section of the document; and after the metadata is inserted in the second section of the document, performing an undo operation on the word processing application, wherein the undo operation includes the steps of: removing the metadata, at the client computer, for the second section of the document; undoing the last user action of the one or more user actions in the first section of the document; and restoring the metadata for the second section of the document wherein removing the metadata at the client computer for the second section of the document comprises removing the metadata from a program stack and storing the metadata in an area of memory on the client computer that is different from the program stack. 9. The method of claim 1 , wherein the one or more user actions include typing in the first section of the document, formatting changes in the first section of the document, and deleting text in the first section of the document.