GNU bug report logs - #49924
28.0.50; `package-quickstart-refresh' fails for "long" (according to `print-length') `package-alist'

Previous Next

Package: emacs;

Reported by: Pal Gloss <pcfeb0009 <at> gmx.com>

Date: Sat, 7 Aug 2021 08:46:02 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Pal Gloss <pcfeb0009 <at> gmx.com>
To: 49924 <at> debbugs.gnu.org
Subject: e1ce9904aa5511468d295cac3221cb77de994331 does not fix #49924
Date: Sat, 7 Aug 2021 16:02:31 +0200
Hi,
 
Thank you for the quick response.  Unfortunately, the proposed fix is not sufficient: the issue is not that `file' in `package-quickstart-refresh' is a long list (it's 1 string).  I think that the problem is `pp' that calls `prin1' (through `pp-to-string') and `prin1' is controlled by `print-length' and `print-level', too.
 
> Thanks for analysing and identifying these two problems.  Perhaps we
> should have a version of prin1-to-string that really did prin1 the
> entire expression, because this problem comes up again and again...

I don't know if `pp' is supposed to print "readably" (which I understand
as can be `read' again, resulting in `equalp' object).  If it is, changing
`pp-to-string' to bind the `print-*' variables would at least solve #49924.

If changing `pp-to-string' (no idea who else uses it) is too risky can
`print-length' and `print-level' be rebound in the top `let' of
`package-quickstart-refresh'.  Otherwise, rebind them locally around the
two calls to `pp'.

Kind regards.




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

Previous Next


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