diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-06 06:01:27 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-06 06:01:27 +0200 |
commit | a9f26a5234473af5e5d577b1855793f5e2ed2faa (patch) | |
tree | 21f202b573c73cb61501e3c1829bf03e67cfb420 | |
parent | f911e89822474bb57152ba6db861f1bd6be00460 (diff) | |
download | geiser-chez-a9f26a5234473af5e5d577b1855793f5e2ed2faa.tar.gz geiser-chez-a9f26a5234473af5e5d577b1855793f5e2ed2faa.tar.bz2 |
Guile: fixes for error navigation.
-rw-r--r-- | elisp/geiser-guile.el | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el index 0bbf9b7..2c49fd6 100644 --- a/elisp/geiser-guile.el +++ b/elisp/geiser-guile.el @@ -152,10 +152,9 @@ This function uses `geiser-guile-init-file' if it exists." ;;; Compilation shell regexps -(defconst geiser-guile--path-rx "^In \\([^:\n]+\\):\n") +(defconst geiser-guile--path-rx "^In \\([^:\n ]+\\):\n") -(defconst geiser-guile--rel-path-rx - "^In \\([^/\n]+.+?/module/\\([^:\n]+\\)\\):\n") +(defconst geiser-guile--rel-path-rx "^In +\\([^/\n :]+\\):\n") (make-variable-buffer-local (defvar geiser-guile--load-path nil)) @@ -173,22 +172,20 @@ This function uses `geiser-guile-init-file' if it exists." (let ((f (match-string-no-properties 1))) (if (file-name-absolute-p f) (list f) - (let ((p (match-string-no-properties 0))) - (when (string-match geiser-guile--rel-path-rx p) - (let ((f (geiser-guile--find-in-load-path - (match-string-no-properties 2 p) - geiser-guile--load-path))) - (and f (list f)))))))) + (message "looking for %s" f) + (let ((f (geiser-guile--find-in-load-path f geiser-guile--load-path))) + (and f (list f)))))) (defun geiser-guile--startup () (set (make-local-variable 'compilation-error-regexp-alist) `((,geiser-guile--path-rx geiser-guile--resolve-file-x) - ("^ +\\([0-9]+\\): +" nil 1) + ("^ *\\([0-9]+\\): +" nil 1) ("at \\(/[^:\n]+\\):\\([[:digit:]]+\\):\\([[:digit:]]+\\)" 1 2 3))) (setq geiser-guile--load-path (geiser-guile--load-path)) (compilation-setup t) - (font-lock-add-keywords - nil `((,geiser-guile--path-rx 1 compilation-error-face)))) + (font-lock-add-keywords nil + `((,geiser-guile--path-rx 1 + compilation-error-face)))) ;;; Implementation definition: |