diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2018-06-23 14:03:10 +0300 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2018-06-23 14:03:10 +0300 |
| commit | ecc29fbd5a73b55d4624c240b8a2d0a01d699e47 (patch) | |
| tree | 258ea4edb175fcff9bd9213c85fa34351537b47c /lisp/avoid.el | |
| parent | 8182d648cb18fb048495c761db7c21fbf3c2a624 (diff) | |
| download | emacs-ecc29fbd5a73b55d4624c240b8a2d0a01d699e47.tar.gz | |
Improve responsiveness while in 'replace-buffer-contents'
* src/editfns.c (buffer_chars_equal): Avoid calling
buf_charpos_to_bytepos when the buffer is plain-ASCII.
Suggested by Milan Stanojević <mstanojevic@janestreet.com>.
Call maybe_quit to improve responsiveness.
(Freplace_buffer_contents): Call maybe_quit. Warn in the doc
string that the function could be slow. (Bug#31888)
Diffstat (limited to 'lisp/avoid.el')
0 files changed, 0 insertions, 0 deletions
