execute-string - Execute a string as a command
n execute-string "string"
execute-string executes the given string n times as if it is being typed. This is the writable format of a keyboard macro, it can be placed in any emf file. Any characters may form the string (unprintables as \xXX) and key-strokes that are bound to a command will execute that command. This command is used by macros to store user defined keyboard macros.
The following example uses keyboard strokes with execute-string in a macro to format nroff(1) text located between . commands:
define-macro nroff-para beginning-of-line !if ¬ &sequal @wc "." 1 buffer-mode "magic" execute-string "\CXS^\\.\CM\CB\CM\CX\CH\CN\CM" -1 fill-paragraph execute-string "\CD\CX\CH\CN\CD\CXH\CB" !endif forward-line !emacro
execute-string has the advantage that execution is very fast as the amount of parsing and decoding to be performed is limited. The disadvantage is that you cannot quickly discern which operations are being performed !!
Try to avoid using named key, such as "up" and "return", as the keyboard macro equivalent is not readable and is likely to change in future releases.
For this reason the following special abbreviations may be used
Copyright (c) 1998-2006 JASSPA
Last Modified: 2004/01/11
Generated On: 2006/10/07