I would do a keyboard macro such as C-X ( C-S (FOO<space> C-M-F C-M-F C-M-K C-X ) and then C-X e repeatedly until you feel it is doing ok and then M-1000 C-X e -------