summaryrefslogtreecommitdiff
path: root/elisp/geiser-edit.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-07-05 00:20:03 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-07-05 00:20:03 +0200
commit13579cb9349034d9b148191c28abffe85b8c2dfe (patch)
treebb33653657678bdbe602a2887959e55e68e53066 /elisp/geiser-edit.el
parenta76d6e96fa315707c224ce7993901a89ad266ef0 (diff)
downloadgeiser-13579cb9349034d9b148191c28abffe85b8c2dfe.tar.gz
geiser-13579cb9349034d9b148191c28abffe85b8c2dfe.tar.bz2
Racket: following error links in separate window.
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r--elisp/geiser-edit.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index 8d25133..563d8c6 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -130,12 +130,14 @@ or following links in error buffers.")
'follow-link t)
(defun geiser-edit--button-action (button)
- (let ((loc (button-get button 'geiser-location)))
- (when loc (geiser-edit--try-edit-location nil loc))))
+ (let ((loc (button-get button 'geiser-location))
+ (method (button-get button 'geiser-method)))
+ (when loc (geiser-edit--try-edit-location nil loc method))))
-(defun geiser-edit--make-link (beg end file line col)
+(defun geiser-edit--make-link (beg end file line col &optional method)
(make-button beg end
:type 'geiser-edit--button
+ 'geiser-method method
'geiser-location
(geiser-edit--make-location 'error file line col)
'help-echo "Go to error location"))