bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55245: 28.1; project--read-project-buffer predicate fails with wrong


From: Dmitry Gutov
Subject: bug#55245: 28.1; project--read-project-buffer predicate fails with wrong-type-argument listp
Date: Wed, 4 May 2022 13:45:02 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]