summary refs log tree commit diff
path: root/mew.scm
diff options
context:
space:
mode:
Diffstat (limited to 'mew.scm')
-rw-r--r--mew.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/mew.scm b/mew.scm
index 917ce6c..a6ac371 100644
--- a/mew.scm
+++ b/mew.scm
@@ -1181,6 +1181,14 @@
                      (str (substring old-prompt 0 2)
                           "^_^;"
                           (substring old-prompt 2))))))
+  (set-record-printer! 'hash-table
+    (lambda (h out)
+      (format out "#<hash-table")
+      (if (< 0 (hash-table-size h) 100)
+        (hash-table-for-each h (lambda (k v)
+                                 (format out " (~s . ~s)" k v)))
+        (format out " (~a)" (hash-table-size h)))
+      (format out ">")))
 
   (set-pseudo-random-seed! (random-bytes))
 )