summaryrefslogtreecommitdiff
path: root/libguile/read.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-02-13 15:04:08 +0100
committerAndy Wingo <wingo@pobox.com>2011-02-13 15:06:11 +0100
commit6c51a40ace32a1540ffe6623ede64ce639b821fa (patch)
treeab726348bfa205cbb07f1da9d3fdc8b3a9f244ef /libguile/read.c
parentd7265e376d27f6bf96bf60c01646ba8893acfba5 (diff)
downloadguile-6c51a40ace32a1540ffe6623ede64ce639b821fa.tar.gz
read-enable 'positions by default
* libguile/read.c (scm_read_opts): Default "positions" to #t. The compiler was already turning it on anyway, and this allows primitive-load without --auto-compile to also propagate source information through the expander, for better errors and to let macros know their source. * module/language/scheme/spec.scm: No need to enable positions here now.
Diffstat (limited to 'libguile/read.c')
-rw-r--r--libguile/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/read.c b/libguile/read.c
index 28a738e19..5f0be3148 100644
--- a/libguile/read.c
+++ b/libguile/read.c
@@ -66,7 +66,7 @@ SCM_SYMBOL (sym_nil, "nil");
scm_t_option scm_read_opts[] = {
{ SCM_OPTION_BOOLEAN, "copy", 0,
"Copy source code expressions." },
- { SCM_OPTION_BOOLEAN, "positions", 0,
+ { SCM_OPTION_BOOLEAN, "positions", 1,
"Record positions of source code expressions." },
{ SCM_OPTION_BOOLEAN, "case-insensitive", 0,
"Convert symbols to lower case."},