GNU bug report logs - #55245
28.1; project--read-project-buffer predicate fails with wrong-type-argument listp

Previous Next

Package: emacs;

Reported by: Reindert-Jan Ekker <info <at> codesensei.nl>

Date: Tue, 3 May 2022 15:09:02 UTC

Severity: normal

Found in version 28.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Reindert-Jan Ekker <info <at> codesensei.nl>, 55245-done <at> debbugs.gnu.org
Subject: Re: bug#55245: 28.1; project--read-project-buffer predicate fails
 with wrong-type-argument listp
Date: Wed, 4 May 2022 13:45:02 +0300
On 03.05.2022 15:01, Reindert-Jan Ekker wrote:
> 
> I encountered this bug because I use helm. After the following:
> 
> (require 'helm)
> (require 'helm-config)
> (helm-mode 1)
> 
> the command project-switch-to-buffer always fails with "wrong type
> argument listp". I posted this as a helm issue at first and got the
> following answer (quoting from
> https://github.com/emacs-helm/helm/issues/2506):
> 
> The bug is not helm related, it is a bug in project--read-project-buffer
> (and possibly other functions which use the same predicate?), where its
> predicate expect a cons cell like (bufname . buf_object) and when the
> first call of the predicate used to determine default for read-buffer
> returns a buffer-name, this one is called next by the predicate function
> of read-buffer (which use the same predicate) with a buffer-name as
> argument instead of a cons cell hence the error "wrong type argument
> listp". Here a possible (quick) fix (not fully safe as it should check
> if buffer is a string or a buffer or nil):

Thanks for the report.

Looks like we got it fixed in Helm.




This bug report was last modified 3 years and 54 days ago.

Previous Next


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