mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 04:10:18 +02:00
Scheme read respects "positions" reader option
* module/ice-9/read.scm (read): Don't add source positions if the option is off.
This commit is contained in:
parent
beac6a3e29
commit
71e53d73fe
1 changed files with 2 additions and 1 deletions
|
@ -146,7 +146,8 @@
|
||||||
(define (annotate line column datum)
|
(define (annotate line column datum)
|
||||||
;; FIXME: Return a syntax object instead, so we can avoid the
|
;; FIXME: Return a syntax object instead, so we can avoid the
|
||||||
;; srcprops side table.
|
;; srcprops side table.
|
||||||
(when (and (supports-source-properties? datum)
|
(when (and (record-positions?)
|
||||||
|
(supports-source-properties? datum)
|
||||||
;; Line or column can be invalid via set-port-column! or
|
;; Line or column can be invalid via set-port-column! or
|
||||||
;; ungetting chars beyond start of line.
|
;; ungetting chars beyond start of line.
|
||||||
(<= 0 line)
|
(<= 0 line)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue