diff options
| author | Tassilo Horn | 2019-02-23 21:18:36 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2019-02-23 21:31:15 +0100 |
| commit | e96923c188a2a38d09917c5b7f606187a1413a96 (patch) | |
| tree | 6ad7b9a1549bf520747db72e36eb62ceb6fcc720 /src/buffer.c | |
| parent | 5f640bfdf84753322763be23ebaa8ded92dc1c5d (diff) | |
| download | emacs-e96923c188a2a38d09917c5b7f606187a1413a96.tar.gz emacs-e96923c188a2a38d09917c5b7f606187a1413a96.zip | |
Improve replace-buffer-contents/replace-region-contents
* src/editfns.c (Freplace_buffer_contents): Add two optional arguments
for mitigating performance issues.
* lisp/emacs-lisp/subr-x.el (replace-region-contents): Move from
subr.el. Add the same two arguments as for replace-buffer-contents.
* lisp/json.el (json-pretty-print-max-secs): New variable holding the
default MAX-SECS value json-pretty-print passes to
replace-buffer-contents.
(json-pretty-print): Use it.
* doc/lispref/text.texi (Replacing): Add documentation for
replace-buffer-contents two new optional arguments. Document
replace-region-contents.
Diffstat (limited to 'src/buffer.c')
0 files changed, 0 insertions, 0 deletions