GNU bug report logs - #52753
29.0.50; Printing long list-like structures fails

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> gmail.com>

Date: Thu, 23 Dec 2021 11:06:01 UTC

Severity: normal

Found in version 29.0.50

Done: Mattias EngdegÄrd <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


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

From: Mattias EngdegÄrd <mattiase <at> acm.org>
To: Ihor Radchenko <yantar92 <at> gmail.com>
Cc: 52753 <at> debbugs.gnu.org
Subject: bug#52753: 29.0.50; Printing long list-like structures fails
Date: Thu, 23 Dec 2021 17:11:10 +0100
The elisp printer isn't really geared towards printing deeply nested values since it uses recursion. Perhaps you could just print the contents of your skip list as a flat list or vector for serialization purposes, and rebuild the structure when loading it back in again.

You could of course always write your own (non-recursive) printer, but be prepared that you may need to write a reader as well.

(I'd use a balanced tree-like structure instead of a skip list. Performance is similar, and allows for immutability and persistence.)





This bug report was last modified 2 years and 350 days ago.

Previous Next


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