Fix Scheme read without source positions
authorAndy Wingo <wingo@pobox.com>
Sun, 28 Feb 2021 19:54:40 +0000 (20:54 +0100)
committerAndy Wingo <wingo@pobox.com>
Sun, 28 Feb 2021 19:54:40 +0000 (20:54 +0100)
* module/ice-9/read.scm (read): Fix annotate when positions are
disabled.

module/ice-9/read.scm

index 72811fdb885a59487a9ca5120413bdcb17b80f35..74f567dd5dbad018df4ed83f1e2627773f4451e9 100644 (file)
                                       (line . ,line)
                                       (column . ,(1- column)))))
           datum)
-        identity))
+        (lambda (line column datum)
+          datum)))
   (%read port annotate identity))
 
 (define* (read-syntax #:optional (port (current-input-port)))