GNU bug report logs - #79183
31.0.50; vc-register prefix arg error

Previous Next

Package: emacs;

Reported by: Eshel Yaron <me <at> eshelyaron.com>

Date: Wed, 6 Aug 2025 09:35:02 UTC

Severity: normal

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

To reply to this bug, email your comments to 79183 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to spwhitton <at> spwhitton.name, bug-gnu-emacs <at> gnu.org:
bug#79183; Package emacs. (Wed, 06 Aug 2025 09:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eshel Yaron <me <at> eshelyaron.com>:
New bug report received and forwarded. Copy sent to spwhitton <at> spwhitton.name, bug-gnu-emacs <at> gnu.org. (Wed, 06 Aug 2025 09:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eshel Yaron <me <at> eshelyaron.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; vc-register prefix arg error
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




Reply sent to Sean Whitton <spwhitton <at> spwhitton.name>:
You have taken responsibility. (Wed, 06 Aug 2025 14:17:02 GMT) Full text and rfc822 format available.

Notification sent to Eshel Yaron <me <at> eshelyaron.com>:
bug acknowledged by developer. (Wed, 06 Aug 2025 14:17:03 GMT) Full text and rfc822 format available.

Message #10 received at 79183-done <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: 79183-done <at> debbugs.gnu.org, Eshel Yaron <me <at> eshelyaron.com>
Subject: Re: bug#79183: 31.0.50; vc-register prefix arg error
Date: Wed, 06 Aug 2025 15:16:07 +0100
Hello,

On Wed 06 Aug 2025 at 11:34am +02, Eshel Yaron wrote:

> 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:

Yes, it looks like it should have been removed in commit 2f4f92007956.

Done it now, on the emacs-30 branch.  Thanks.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79183; Package emacs. (Wed, 06 Aug 2025 14:45:01 GMT) Full text and rfc822 format available.

Message #13 received at 79183-done <at> debbugs.gnu.org (full text, mbox):

From: Eshel Yaron <me <at> eshelyaron.com>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: 79183-done <at> debbugs.gnu.org
Subject: Re: bug#79183: 31.0.50; vc-register prefix arg error
Date: Wed, 06 Aug 2025 16:44:18 +0200
Sean Whitton <spwhitton <at> spwhitton.name> writes:

> Hello,
>
> On Wed 06 Aug 2025 at 11:34am +02, Eshel Yaron wrote:
>
>> 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:
>
> Yes, it looks like it should have been removed in commit 2f4f92007956.
>
> Done it now, on the emacs-30 branch.  Thanks.

Great, thank you.

Eshel




This bug report was last modified 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.