From 56214865d77e566fa00eca2b413f5e8a44fecbf3 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 21 Jul 2025 11:04:34 +0100 Subject: [PATCH] ; * lisp/vc/vc-cvs.el (vc-cvs-file-to-string): Simplify slightly. (cherry picked from commit 0a0ff0383906e519ed9b8f8c471b8ef5c44a3092) --- lisp/vc/vc-cvs.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el index 06597ed7853..0f3b8625520 100644 --- a/lisp/vc/vc-cvs.el +++ b/lisp/vc/vc-cvs.el @@ -1093,9 +1093,8 @@ Query all files in DIR if files is nil." "Read the content of FILE and return it as a string." (condition-case nil (with-temp-buffer - (insert-file-contents file) - (goto-char (point-min)) - (buffer-substring (point) (point-max))) + (insert-file-contents file) + (buffer-string)) (file-error nil))) (defun vc-cvs-dir-extra-headers (_dir) -- 2.39.5