From: Luc Teirlinck Date: Thu, 16 Jun 2005 20:14:24 +0000 (+0000) Subject: (Timers): Timers should save and restore the match data if they change it. X-Git-Tag: emacs-pretest-22.0.90~8858 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=df05ea85bc23f1ad4ed6ab03738f12aa0df4001a;p=emacs.git (Timers): Timers should save and restore the match data if they change it. --- diff --git a/lispref/os.texi b/lispref/os.texi index a1de8f09c36..e0c032f3e95 100644 --- a/lispref/os.texi +++ b/lispref/os.texi @@ -1375,6 +1375,9 @@ both before and after changing the buffer, to separate the timer's changes from user commands' changes and prevent a single undo entry from growing to be quite large. + If a timer function calls functions that can change the match data, +it should save and restore the match data. @xref{Saving Match Data}. + @deffn Command run-at-time time repeat function &rest args This sets up a timer that calls the function @var{function} with arguments @var{args} at time @var{time}. If @var{repeat} is a number