]> git.eshelyaron.com Git - emacs.git/commit
Improve replace-buffer-contents/replace-region-contents
authorTassilo Horn <tsdh@gnu.org>
Sat, 23 Feb 2019 20:18:36 +0000 (21:18 +0100)
committerTassilo Horn <tsdh@gnu.org>
Sat, 23 Feb 2019 20:31:15 +0000 (21:31 +0100)
commite96923c188a2a38d09917c5b7f606187a1413a96
tree6ad7b9a1549bf520747db72e36eb62ceb6fcc720
parent5f640bfdf84753322763be23ebaa8ded92dc1c5d
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.
doc/lispref/text.texi
etc/NEWS
lisp/emacs-lisp/subr-x.el
lisp/json.el
lisp/subr.el
src/editfns.c