From 347321ece9fc85ddf74af3c798230b7b187fbce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 7 Mar 2022 10:29:27 +0100 Subject: psyntax: Honor source properties for things other than syntax objects. Commit 54bbe0b2846c5b1aa366c91d679ba724869c8cda inadvertently led psyntax to dismiss source location info for data returned by read hash extensions, because read hash extensions return plain data with associated source properties, even when called from 'read-syntax'. This change reverts part of this commit to restore that behavior. Fixes . * module/ice-9/psyntax.scm (datum-sourcev): New procedure. (source-annotation): Fall back to 'datum-sourcev'. * module/ice-9/psyntax-pp.scm: Regenerate. * test-suite/tests/compiler.test ("psyntax")["syntax-source with read-hash-extend"]: New test. --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index c7733aa4f..0c77f8dd7 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,8 @@ Changes in 3.0.9 (since 3.0.8) ** Type sizes are correctly determined when cross-compiling (https://bugs.gnu.org/54198) +** psyntax honors source properties coming from read hash extensions + (https://bugs.gnu.org/54003) Changes in 3.0.8 (since 3.0.7) -- cgit v1.2.1