Subject: 31.0.50; vc-register prefix arg error

From: Eshel Yaron <[email-masked]>
Date: Wed, 06 Aug 2025 11:34:40 +0200

Hi,

With emacs -Q, visit any file and say C-u vc-register.  
This yields an error: "Wrong type argument: symbolp, 4".

The interactive spec of vc-register seems to be a remnant of a previous
implementation that is no longer applicable, so I suggest simply
removing it:

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 4cfd1790266..9f65ab187ce 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1752,7 +1752,7 @@ vc-register
 directory are already registered under that backend) will be used to
 register the file.  If no backend declares itself responsible, the
 first backend that could register the file is used."
-  (interactive "P")
+  (interactive)
   (let* ((fileset-arg (or vc-fileset (vc-deduce-fileset nil t)))
          (backend (car fileset-arg))
 	 (files (nth 1 fileset-arg)))

Best,

Eshel