diff options
| author | Stefan Monnier | 2025-03-28 00:48:28 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2025-03-29 17:49:49 -0400 |
| commit | 468c2aebae0ee13273f4b06e92f4188c4c46d2b3 (patch) | |
| tree | 0070900b43fd0b21da71cf8b581506193e6f8408 /lisp/progmodes/python.el | |
| parent | 57da44fa702782e19cd9d60ea63ec2fd9ca48521 (diff) | |
| download | emacs-468c2aebae0ee13273f4b06e92f4188c4c46d2b3.tar.gz emacs-468c2aebae0ee13273f4b06e92f4188c4c46d2b3.zip | |
Replace uses of `replace-buffer-contents`
* lisp/vc/vc.el (vc-diff-restore-buffer):
* lisp/progmodes/python.el (python--do-isort):
* lisp/progmodes/eglot.el (eglot--apply-text-edits):
* lisp/files.el (revert-buffer-insert-file-contents-delicately):
* lisp/json.el (json-pretty-print): Use `replace-region-contents`.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index b6db6097d9f..de3745a036c 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -6931,7 +6931,7 @@ Return non-nil if the buffer was actually modified." | |||
| 6931 | (unless (eq 0 status) | 6931 | (unless (eq 0 status) |
| 6932 | (error "%s exited with status %s (maybe isort is missing?)" | 6932 | (error "%s exited with status %s (maybe isort is missing?)" |
| 6933 | python-interpreter status)) | 6933 | python-interpreter status)) |
| 6934 | (replace-buffer-contents temp) | 6934 | (replace-region-contents (point-min) (point-max) temp) |
| 6935 | (not (eq tick (buffer-chars-modified-tick))))))))) | 6935 | (not (eq tick (buffer-chars-modified-tick))))))))) |
| 6936 | 6936 | ||
| 6937 | ;;;###autoload | 6937 | ;;;###autoload |