GNU bug report logs - #29956
26.0.90; `d' in *VC-history*: Wrong type argument: sequencep, 47

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Wed, 3 Jan 2018 03:52:02 UTC

Severity: normal

Found in version 26.0.90

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29956 in the body.
You can then email your comments to 29956 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#29956; Package emacs. (Wed, 03 Jan 2018 03:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 03 Jan 2018 03:52:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.90; `d' in *VC-history*: Wrong type argument: sequencep, 47
Date: Tue, 02 Jan 2018 22:50:52 -0500
Package: Emacs
Version: 26.0.90


    % src/emacs -Q lisp/emacs-lisp/pcase.el
    ...Select the first (def-edebug-spec ...)
    C-x v h
    In the *VC-history* buffer, hit `d'

This gives me `Wrong type argument: sequencep, 47'
[ Which file you use, and which region of the file you select doesn't
  really matter.  ]

The patch below fixes it for me.

Is it OK to install it into emacs-26, or should I keep it on `master`?

FWIW, it's not a new bug in Emacs-26 and it's not terribly urgent to fix
it, e.g. because you can use `D' which does work (tho it doesn't do
quite the same), so I'm fine with either choice.


        Stefan


diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 7c502f88df..0a87e70017 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2426,9 +2426,11 @@ vc-region-history
       (setq-local vc-log-view-type 'long))
     (vc-call region-history file buf lfrom lto)
     (with-current-buffer buf
+      (setq default-directory (file-name-directory file))
       (vc-call-backend backend 'region-history-mode)
       (set (make-local-variable 'log-view-vc-backend) backend)
-      (set (make-local-variable 'log-view-vc-fileset) file)
+      (set (make-local-variable 'log-view-vc-fileset)
+           (list (file-relative-name file)))
       (set (make-local-variable 'revert-buffer-function)
 	   (lambda (_ignore-auto _noconfirm)
              (with-current-buffer buf




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29956; Package emacs. (Wed, 03 Jan 2018 15:07:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 29956 <at> debbugs.gnu.org
Subject: Re: bug#29956: 26.0.90;
 `d' in *VC-history*: Wrong type argument: sequencep, 47
Date: Wed, 03 Jan 2018 17:06:23 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Date: Tue, 02 Jan 2018 22:50:52 -0500
> 
>     % src/emacs -Q lisp/emacs-lisp/pcase.el
>     ...Select the first (def-edebug-spec ...)
>     C-x v h
>     In the *VC-history* buffer, hit `d'
> 
> This gives me `Wrong type argument: sequencep, 47'
> [ Which file you use, and which region of the file you select doesn't
>   really matter.  ]
> 
> The patch below fixes it for me.
> 
> Is it OK to install it into emacs-26, or should I keep it on `master`?

It's okay for emacs-26, but I'm curious why did you need the
default-directory part.  Is that related to the problem?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29956; Package emacs. (Wed, 03 Jan 2018 20:31:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 29956 <at> debbugs.gnu.org
Subject: Re: bug#29956: 26.0.90;
 `d' in *VC-history*: Wrong type argument: sequencep, 47
Date: Wed, 03 Jan 2018 15:30:06 -0500
>> Is it OK to install it into emacs-26, or should I keep it on `master`?
> It's okay for emacs-26, but I'm curious why did you need the
> default-directory part.  Is that related to the problem?

I first tried by just setting log-view-vc-fileset to (list file) but
that gave me an error which gave me the impression that the fileset
should be composed of relative file names, and since the buffer can be
reused it's important to set default-directory properly before we can
use relative file names.


        Stefan




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Wed, 03 Jan 2018 20:36:01 GMT) Full text and rfc822 format available.

Notification sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
bug acknowledged by developer. (Wed, 03 Jan 2018 20:36:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 29956-done <at> debbugs.gnu.org
Subject: Re: bug#29956: 26.0.90;
 `d' in *VC-history*: Wrong type argument: sequencep, 47
Date: Wed, 03 Jan 2018 15:35:38 -0500
> It's okay for emacs-26, but I'm curious why did you need the
> default-directory part.  Is that related to the problem?

I checked the value of log-view-vc-fileset elsewhere and they seem to
use absolute file names.  So I tried again with (list file) and it
worked fine, not sure why I got an error when I checked last time.
So I installed the patch below instead,


        Stefan


diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 7c502f88df..f8d63d1498 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2428,7 +2428,7 @@ vc-region-history
     (with-current-buffer buf
       (vc-call-backend backend 'region-history-mode)
       (set (make-local-variable 'log-view-vc-backend) backend)
-      (set (make-local-variable 'log-view-vc-fileset) file)
+      (set (make-local-variable 'log-view-vc-fileset) (list file))
       (set (make-local-variable 'revert-buffer-function)
 	   (lambda (_ignore-auto _noconfirm)
              (with-current-buffer buf




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 01 Feb 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 143 days ago.

Previous Next


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