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 310ef28..a5a9c78 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -69,7 +69,9 @@ or following links in error buffers.")
(geiser-edit--to-number (cdr (assoc "char" loc))))
(defsubst geiser-edit--make-location (name file line column)
- `(("name" . ,name) ("file" . ,file) ("line" . ,line) ("column" . ,column)))
+ (if (equal line "")
+ `(("name" . ,name) ("file" . ,file) ("char" . ,column))
+ `(("name" . ,name) ("file" . ,file) ("line" . ,line) ("column" . ,column))))
(defconst geiser-edit--def-re
(regexp-opt '("define"