diff options
author | jao <jao@gnu.org> | 2022-04-09 17:21:08 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-04-09 17:21:08 +0100 |
commit | 5b9532a571b28f1f82f0eaaecc1f7792473bdc6c (patch) | |
tree | e87f85c30a6413ed8ac6d5b779ef65f0db790282 /elisp/geiser-edit.el | |
parent | 9507e81a075351d090fd1f4f708efd05d6470cba (diff) | |
download | geiser-5b9532a571b28f1f82f0eaaecc1f7792473bdc6c.tar.gz geiser-5b9532a571b28f1f82f0eaaecc1f7792473bdc6c.tar.bz2 |
A bit more tramp-friendliness
Fixes #45. Thanks to Brian Cully.
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r-- | elisp/geiser-edit.el | 4 |
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) |