]> git.eshelyaron.com Git - emacs.git/commit
Make transpose-regions invoke before-change-functions only once.
authorAlan Mackenzie <acm@muc.de>
Sat, 6 Jan 2018 20:15:04 +0000 (20:15 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 6 Jan 2018 20:15:04 +0000 (20:15 +0000)
commit5fd229735384a5fa479466124a181bf7d4ea8dab
tree51396178dc954cbb808f34f6a11a1216cbc127d2
parentfc31788beb924c712451adef47b1005bac2ac48a
Make transpose-regions invoke before-change-functions only once.

In the case of two non-contiguous regions the same size, transpose-regions has
been calling before-change-functions twice, once for each region.  It now
calls it just once, for the minimal region spanning both single regions.

* src/editfns.c (Ftranspose_regions): Combine two calls of modify_text into
one.
src/editfns.c