add save-match-data to the change-hook function

http://www.gnu.org/software/emacs/manual/html_node/elisp/Change-Hooks.html