* 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.
This commit is contained in:
parent
3d3bbaace6
commit
8496395653
1 changed files with 1 additions and 1 deletions
|
@ -1877,7 +1877,7 @@ With a prefix argument, show headings up to that LEVEL."
|
|||
(save-excursion (goto-char beg) (setq beg (pos-bol)))
|
||||
(save-excursion (goto-char end) (setq end (pos-eol)))
|
||||
(remove-overlays beg end 'outline-button t)
|
||||
(outline--fix-up-all-buttons beg end))
|
||||
(save-match-data (outline--fix-up-all-buttons beg end)))
|
||||
|
||||
|
||||
(defvar-keymap outline-navigation-repeat-map
|
||||
|
|
Loading…
Add table
Reference in a new issue