Commit d4e5bf0f authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

(c-before-change): insert call of `save-match-data'.

parent fec4d266
......@@ -490,6 +490,7 @@ preferably use the `c-mode-menu' language constant directly."
;; isn't critical.
(setq c-maybe-stale-found-type nil)
(save-restriction
(save-match-data
(widen)
(save-excursion
;; Are we inserting/deleting stuff in the middle of an identifier?
......@@ -545,7 +546,7 @@ preferably use the `c-mode-menu' language constant directly."
(list type marked-id
type-pos term-pos
(buffer-substring-no-properties type-pos term-pos)
(buffer-substring-no-properties beg end))))))))))
(buffer-substring-no-properties beg end)))))))))))
(defun c-after-change (beg end old-len)
;; Function put on `after-change-functions' to adjust various caches
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment