summaryrefslogtreecommitdiff
path: root/elisp/geiser-edit.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r--elisp/geiser-edit.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index cfa11fb..d8fa0ab 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -51,7 +51,9 @@ or following links in error buffers.")
(cdr (assoc "name" loc)))
(defsubst geiser-edit--location-file (loc)
- (cdr (assoc "file" loc)))
+ (when-let ((file-name (cdr (assoc "file" loc))))
+ (concat (or (file-remote-p default-directory) "")
+ file-name)))
(defsubst geiser-edit--to-number (x)
(cond ((numberp x) x)