mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 06:41:13 +02:00
Added section about highlighting in backtraces.
This commit is contained in:
parent
43c2562635
commit
6a1d27ea08
1 changed files with 24 additions and 0 deletions
24
NEWS
24
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
|
substring/copy, and substring/read-only. See the manual for more
|
||||||
information.
|
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.
|
** 'gettext' support for internationalization has been added.
|
||||||
|
|
||||||
See the manual for details.
|
See the manual for details.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue