summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2015-12-12 17:21:31 +0300
committerJose Antonio Ortega Ruiz <jao@gnu.org>2015-12-14 03:57:53 +0100
commit29854dfe5560a9be1c32f2b2e14dc8132c2f23ae (patch)
tree5b988805ec54c90af6b2fc985ddf07e99d3a4d9f /elisp/geiser-repl.el
parentfaa5da7c249ced4434020619e890f44190caef8a (diff)
downloadgeiser-guile-29854dfe5560a9be1c32f2b2e14dc8132c2f23ae.tar.gz
geiser-guile-29854dfe5560a9be1c32f2b2e14dc8132c2f23ae.tar.bz2
Fix geiser-connect-local for non-interactive use
Move prompting for a socket file name to the interactive form.
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r--elisp/geiser-repl.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 76991c5..88e1ce3 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -760,14 +760,14 @@ buffer."
(geiser-repl--read-address host port))
(geiser-repl--maybe-remember-scm-buffer buffer)))
-(defun geiser-connect-local (impl &optional socket)
+(defun geiser-connect-local (impl socket)
"Start a new Geiser REPL connected to a remote Scheme process
over a Unix-domain socket."
(interactive
- (list (geiser-repl--get-impl "Connect to Scheme implementation: ")))
+ (list (geiser-repl--get-impl "Connect to Scheme implementation: ")
+ (read-file-name "Socket file name: ")))
(let ((buffer (current-buffer)))
- (geiser-repl--start-repl impl
- (read-file-name "Socket file name: "))
+ (geiser-repl--start-repl impl socket)
(geiser-repl--maybe-remember-scm-buffer buffer)))
(make-variable-buffer-local