]> 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>
Tue, 25 Aug 2020 18:25:21 +0000 (11:25 -0700)
commiteb77572257bfa4e649c0c8852d2d0a58ad63eaa5
treede34a3b16d789fd51d61a8c0e0036fe91ed4196c
parenta142bbd288a814822ba63194c690552f8c0ce425
Fix replace-region-contents performance bug

Backport from master.
* 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