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 co
>From my prior message:
1. Every function that waits for input or otherwise allows for timers
to run should save and restore the match data.
This is probably not unreasonable, as every function that asks a
minibuffer question already needs to store the match data for other
reasons a
(elisp)Saving Match Data contains:
Emacs automatically saves and restores the match data when it runs
process filter functions (*note Filter Functions::) and process
sentinels (*note Sentinels::).
But this apparently does not apply to timers.
This leads to very concrete problems. If on