To avoid such problems, either: 1. Every function that waits for input or otherwise allows for timers to run should save and restore the match data.
2. We should make timers automatically save and restore match data. 3. Any individual timer function that potentially could alter the match data should save and restore the match data. Which one? Currently, #3 is the way it is supposed to work. However, converting to #2 might be an improvement. It would be cleaner, but it might be less efficient; surely most timer functions are rather small and don't alter the match data. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel