> The file size is important - if I just take the first few
thousand
> lines, it's not a problem. It also occurs with xemacs -vanilla -nw .
Vin> I see what you mean. This seems to have something to do with
Vin> interactive search: if you change C-s to M-x search-forward and C-r
Vin> to M-x search-backward then your example runs very quickly for me.
I routinely disable isearch highlighting when running keyboard macros
especially if the file is large or the macro is run repeatedly. (Aidan's
patch seems related to that.) Also, if the macro modifies the file, turning
off auto-save for large files (or at increasing the auto-save interval)
also helps.
--
Skip Montanaro
http://www.musi-cal.com/
skip(a)pobox.com