vc-test--with-temp-change: Use write-region

* test/lisp/vc/vc-tests/vc-tests.el (vc-test--with-temp-change):
Use write-region (bug#79657).
This commit is contained in:
Sean Whitton 2025-10-20 15:16:05 +01:00
parent fb48f6016e
commit 095956a745

View file

@ -798,7 +798,7 @@ This checks also `vc-backend' and `vc-responsible-backend'."
(with-current-buffer ,buf
(activate-change-group ,handle)
(insert "bar\n")
(basic-save-buffer)
(write-region nil nil buffer-file-name nil t)
,@body)
(cancel-change-group ,handle)
(with-current-buffer ,buf