From 29854dfe5560a9be1c32f2b2e14dc8132c2f23ae Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Sat, 12 Dec 2015 17:21:31 +0300 Subject: Fix geiser-connect-local for non-interactive use Move prompting for a socket file name to the interactive form. --- elisp/geiser-repl.el | 8 ++++---- 1 file 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 -- cgit v1.2.3