summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-08-31 21:26:05 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-08-31 21:26:05 +0200
commitbd4e541c13836fbf7cabf1da26b97abff4160a8a (patch)
treea35131d5503f695955d293bdfd5a83114b54708d /elisp
parentac3b287438e8e5ca85f778f55094822408b1131b (diff)
downloadgeiser-bd4e541c13836fbf7cabf1da26b97abff4160a8a.tar.gz
geiser-bd4e541c13836fbf7cabf1da26b97abff4160a8a.tar.bz2
Make geiser-mode ask which scheme on activation if guessing fails
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-impl.el4
-rw-r--r--elisp/geiser-mode.el2
2 files changed, 3 insertions, 3 deletions
diff --git a/elisp/geiser-impl.el b/elisp/geiser-impl.el
index 47af5be..8c55ab4 100644
--- a/elisp/geiser-impl.el
+++ b/elisp/geiser-impl.el
@@ -232,8 +232,8 @@ buffer contains Scheme code of the given implementation.")
(let ((m (geiser-impl--method method impl)))
(if (functionp m) (funcall m) fallback)))
-(defun geiser-impl--set-buffer-implementation (&optional impl)
- (let ((impl (or impl (geiser-impl--guess))))
+(defun geiser-impl--set-buffer-implementation (&optional impl prompt)
+ (let ((impl (or impl (geiser-impl--guess prompt))))
(when impl
(unless (geiser-impl--load-impl impl)
(error "Cannot find %s implementation" impl))
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index 7a47c46..6f02204 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -202,7 +202,7 @@ interacting with the Geiser REPL is at your disposal.
:lighter (:eval (geiser-mode--lighter))
:group 'geiser-mode
:keymap geiser-mode-map
- (when geiser-mode (geiser-impl--set-buffer-implementation))
+ (when geiser-mode (geiser-impl--set-buffer-implementation nil t))
(setq geiser-autodoc-mode-string "/A")
(setq geiser-smart-tab-mode-string "/T")
(geiser-company--setup (and geiser-mode geiser-mode-company-p))