ui: Auto-compile user code, and improve error reporting.
authorLudovic Courtès <ludo@gnu.org>
Mon, 25 May 2015 16:25:19 +0000 (18:25 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 25 May 2015 19:34:23 +0000 (21:34 +0200)
commit2abcc97fd1867176d5530f988ab34c26530de2c2
treef83211356ce43e7496d00495966e616cec93b229
parentfbb25e5651d4bd084b2af41078cffd9254d8f8a7
ui: Auto-compile user code, and improve error reporting.

Reported by Christian Grothoff.

* guix/ui.scm (load*): Add 'frame-with-source'.  Set
  %load-should-auto-compile.  Change error handle to just (exit 1).  Add
  pre-unwind handler to capture the stack and call 'report-load-error'.
  (report-load-error): Add optional 'frame' parameter and pass it to
  'display-error'.
* tests/guix-system.sh: Add "unbound variable" test.
.dir-locals.el
guix/ui.scm
tests/guix-system.sh