Added section about highlighting in backtraces.
authorMarius Vollmer <mvo@zagadka.de>
Wed, 29 Sep 2004 18:13:40 +0000 (18:13 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Wed, 29 Sep 2004 18:13:40 +0000 (18:13 +0000)
NEWS

diff --git a/NEWS b/NEWS
index 5e7528b..4307187 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -166,6 +166,30 @@ Three new procedures are related to this: substring/shared,
 substring/copy, and substring/read-only.  See the manual for more
 information.
 
+** Backtraces will now highlight the value that caused the error.
+
+By default, these values are enclosed in "{...}", such as in this
+example:
+
+    guile> (car 'a)
+
+    Backtrace:
+    In current input:
+       1: 0* [car {a}]
+
+    <unnamed port>:1:1: In procedure car in expression (car (quote a)):
+    <unnamed port>:1:1: Wrong type (expecting pair): a
+    ABORT: (wrong-type-arg)
+
+The prefix and suffix used for highlighting can be set via the two new
+printer options 'highlight-prefix' and 'highlight-suffix'.  For
+example, putting this into ~/.guile will output the bad value in bold
+on an ANSI terminal:
+
+    (print-set! highlight-prefix "\x1b[1m")
+    (print-set! highlight-suffix "\x1b[22m")
+
+
 ** 'gettext' support for internationalization has been added.
 
 See the manual for details.