]> git.eshelyaron.com Git - emacs.git/commit
Fix replace-region-contents performance bug
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Aug 2020 20:12:51 +0000 (13:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Aug 2020 20:17:48 +0000 (13:17 -0700)
commit08a6d14e4116c74284c12dd1319780afbcbbfd1d
tree811ed4b80a5dc493a9ffe25046005dcfea23ab96
parent519fc10f121c59d6844afaf0ef0a1e1d67a2a934
Fix replace-region-contents performance bug

* src/editfns.c (rbc_quitcounter): Remove; the quitcounter
is now part of the context.
(EXTRA_CONTEXT_FIELDS): Remove unused member early_abort_tests.
Add jmp, quitcounter.
(Freplace_buffer_contents): Use setjmp/longjmp to recover from
a compareseq that runs too long.  Omit unnecessary rarely_quit
call.
(buffer_chars_equal): Occasionally check for early abort and
longjmp out if so (Bug#43016).
src/editfns.c