mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +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)
|
||||
;; FIXME: Return a syntax object instead, so we can avoid the
|
||||
;; 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
|
||||
;; ungetting chars beyond start of line.
|
||||
(<= 0 line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue