From bfa5d426c48a075d1386f4feb8d6833ba6ba1670 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 21 Apr 2013 02:45:28 +0200 Subject: Fix for Racket compilation error jumping in REPL The backtraces now display some leading whitespace, which the default compilation-mode regexps was making part of the file name. --- elisp/geiser-racket.el | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el index ef15dc2..0b4f009 100644 --- a/elisp/geiser-racket.el +++ b/elisp/geiser-racket.el @@ -98,13 +98,6 @@ This function uses `geiser-racket-init-file' if it exists." (defconst geiser-racket--prompt-regexp "\\(mzscheme\\|racket\\)@[^ ]*> ") -(defun geiser-racket--startup (remote) - (if geiser-image-cache-dir - (geiser-eval--send/wait - `(:eval (image-cache ,geiser-image-cache-dir) geiser/user)) - (setq geiser-image-cache-dir - (geiser-eval--send/result '(:eval (image-cache) geiser/user))))) - ;;; Remote REPLs @@ -346,6 +339,19 @@ using start-geiser, a procedure in the geiser/server module." (with-handlers 1) (with-handlers: 1)) + +;;; Startup + +(defun geiser-racket--startup (remote) + (set (make-local-variable 'compilation-error-regexp-alist) + `(("^ *\\([^:(\t\n]+\\):\\([0-9]+\\):\\([0-9]+\\):" 1 2 3))) + (compilation-setup t) + (if geiser-image-cache-dir + (geiser-eval--send/wait + `(:eval (image-cache ,geiser-image-cache-dir) geiser/user)) + (setq geiser-image-cache-dir + (geiser-eval--send/result '(:eval (image-cache) geiser/user))))) + ;;; Implementation definition: -- cgit v1.2.3