diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-10-31 01:46:29 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-10-31 01:46:29 +0200 |
commit | 5e04bdd30219016c13963cda5cc78286db84b1b1 (patch) | |
tree | 2587e3b1f66afb1129b561f9ba74c98a77cdef41 | |
parent | a6c2ef373df4186a9cc7ae6618407ece49f9f624 (diff) | |
download | geiser-guile-5e04bdd30219016c13963cda5cc78286db84b1b1.tar.gz geiser-guile-5e04bdd30219016c13963cda5cc78286db84b1b1.tar.bz2 |
Guile: reactivating the debugger during evaluation
-rw-r--r-- | geiser/emacs.scm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/geiser/emacs.scm b/geiser/emacs.scm index ba6b100..73c02d0 100644 --- a/geiser/emacs.scm +++ b/geiser/emacs.scm @@ -12,6 +12,7 @@ (define-module (geiser emacs) #:use-module (ice-9 match) #:use-module (system repl command) + #:use-module (system repl error-handling) #:use-module (geiser evaluation) #:use-module ((geiser modules) :renamer (symbol-prefix-proc 'ge:)) #:use-module ((geiser completion) :renamer (symbol-prefix-proc 'ge:)) @@ -29,11 +30,18 @@ No-op command used internally by Geiser." "geiser-eval Meta-command used by Geiser to evaluate and compile code." (if (null? args) - (ge:compile form mod) + (call-with-error-handling + (lambda () (ge:compile form mod))) (let ((proc (eval form this-module))) (ge:eval `(,proc ,@args) mod)))) (define-meta-command ((geiser-load-file geiser) repl file) "geiser-load-file Meta-command used by Geiser to load and compile files." - (ge:compile-file file)) + (call-with-error-handling + (lambda () (ge:compile-file file)))) + +(define-meta-command ((geiser-newline geiser) repl) + "geiser-newline +Meta-command used by Geiser to emit a new line." + (newline)) |