diff options
author | Noam Postavsky <npostavs@gmail.com> | 2016-07-20 20:15:14 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2016-07-22 23:55:23 -0400 |
commit | 66f95e0dabf750e9d2eff59b2bb6e593618cd48a (patch) | |
tree | a8cd27828bfef2459b70e446cdf1de346327fc3e /lisp/emacs-lisp/map-ynp.el | |
parent | 52cf0d5d98c51c3591ca5d376fd4e85cd9b72d7f (diff) | |
download | emacs-66f95e0dabf750e9d2eff59b2bb6e593618cd48a.tar.gz emacs-66f95e0dabf750e9d2eff59b2bb6e593618cd48a.tar.bz2 emacs-66f95e0dabf750e9d2eff59b2bb6e593618cd48a.zip |
Adjust match data before calling after-change-funs
It's important to adjust the match data in between calling
before-change-functions and after-change-functions, so that buffer
change hooks will always see match-data consistent with buffer content.
(Bug #23917)
* src/insdel.c (replace_range): Add new parameter ADJUST_MATCH_DATA, if
true call update_search_regs. Update all callers (except
Freplace_match) to pass 0 for the new parameter.
* src/search.c (update_search_regs): New function, extracted from
Freplace_match.
(Freplace_match): Remove match data adjustment code, pass 1 for
ADJUST_MATCH_DATA to replace_range instead.
Diffstat (limited to 'lisp/emacs-lisp/map-ynp.el')
0 files changed, 0 insertions, 0 deletions