GNU bug report logs - #15190
24.3; Reader error when combining print-circle and hash tables

Previous Next

Package: emacs;

Reported by: Christopher Wellons <wellons <at> nullprogram.com>

Date: Mon, 26 Aug 2013 06:58:02 UTC

Severity: normal

Found in version 24.3

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

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Christopher Wellons <wellons <at> nullprogram.com>
Cc: 15190-done <at> debbugs.gnu.org
Subject: Re: bug#15190: 24.3;
 Reader error when combining print-circle and hash tables
Date: Mon, 26 Aug 2013 16:34:29 -0400
> I'm running into an issue in Emacs 24.3 where the lisp reader fails to
> parse hash tables printed with print-circle set to t.

Indeed, there was an oversight.  It should be fixed on the trunk now,


        Stefan


=== modified file 'src/lread.c'
--- src/lread.c	2013-07-20 14:21:25 +0000
+++ src/lread.c	2013-08-26 20:24:36 +0000
@@ -3229,7 +3229,7 @@
 	if (BOOL_VECTOR_P (subtree))
 	  return subtree;		/* No sub-objects anyway.  */
 	else if (CHAR_TABLE_P (subtree) || SUB_CHAR_TABLE_P (subtree)
-		 || COMPILEDP (subtree))
+		 || COMPILEDP (subtree) || HASH_TABLE_P (subtree))
 	  length = ASIZE (subtree) & PSEUDOVECTOR_SIZE_MASK;
 	else if (VECTORP (subtree))
 	  length = ASIZE (subtree);





This bug report was last modified 11 years and 274 days ago.

Previous Next


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