projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ae0551
)
Change pp to treat all define-FOO symbols like define.
author
Chris Hanson
<org/chris-hanson/cph>
Mon, 6 Feb 2017 05:38:02 +0000
(21:38 -0800)
committer
Chris Hanson
<org/chris-hanson/cph>
Mon, 6 Feb 2017 05:38:02 +0000
(21:38 -0800)
src/runtime/pp.scm
patch
|
blob
|
history
diff --git
a/src/runtime/pp.scm
b/src/runtime/pp.scm
index a442d99663dc9d379d5a8311df4d29ecdea35590..592f3ab831561f9464335a6a8eb7b910fb5b5604 100644
(file)
--- a/
src/runtime/pp.scm
+++ b/
src/runtime/pp.scm
@@
-410,7
+410,13
@@
USA.
(let* ((subnodes (node-subnodes node))
(association
(and (not (null? (cdr subnodes)))
- (assq (unhighlight (car subnodes)) (dispatch-list)))))
+ (let ((first (unhighlight (car subnodes))))
+ (and (symbol? first)
+ (assq (if (ustring-prefix? "define-"
+ (symbol->string first))
+ 'define
+ first)
+ (dispatch-list)))))))
(if (and (not association)
(fits-within? node column depth))
(print-guaranteed-list-node node)