]> git.eshelyaron.com Git - emacs.git/commit
* lisp/outline.el (outline--fix-buttons-after-change): Add save-match-data.
authorJuri Linkov <juri@linkov.net>
Wed, 22 Mar 2023 07:44:02 +0000 (09:44 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 22 Mar 2023 07:44:02 +0000 (09:44 +0200)
commit84963956535e9eff38b0d7638ce751039eb44bc2
treeeb4caa68fcbea8cc27fe11fe62ad8f071856e28e
parent3d3bbaace692384a895ec55ff7e5a91ad66463bb
* lisp/outline.el (outline--fix-buttons-after-change): Add save-match-data.

It's important for a hook in after-change-functions not to change match-data.
Otherwise it breaks functions that make changes in the buffer, such as
for example, successive calls to delete-region in smerge-keep-n, etc.
lisp/outline.el