Mark Fletcher wrote: > I see that 'repeat' takes an index parameter. But if you don't pass it a > parameter, how is 'repeat' different than 'redo'? Where might you use > each command in a macro?
Redo is only enabled if you previously did an Undo. It means ``undo this Undo''. Repeat allows to quickly execute a command several times without having to specify anything interactively (like command "." in famous text editor vi). Repeating a command is achieved by using "Edit|Repeat" (Ctrl-A; _A_ like _A_gain) or "Edit|Command History" (Ctrl+Shift-A). For a macro to support repeat, you need to add attribute repeatable="true" to it. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/macro_reference.html If a macro supports undo (attribute "undoable"), it automatically supports redo. Repeat and undo are totally unrelated. For example, it makes sense to be able to repeat a macro which performs a smart selection and it does not make sense to be able to undo such macro.

