Just a very wild guess, just in case: is there any possibility for a timer to run during that code and mess up the match data? I do not know the code well enough to check whether it allows timers to run and whether it uses the match data at some time after that. The unpredictability, combined with the args-out-of-range error reminds me of a similarly completely unpredictable bug I recently fixed by making Auto Revert restore the match data.
Sincerely, Luc. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel