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
commit97d7a64bd4ba60aaaaad4be801becdfa9330f873 (patch)
tree368ec6071417bb27ea807eb700dcafd4a90db689 /elisp
parentf6e8492346b1ac7be21b96849df25c08dd8ce3ae (diff)
downloadgeiser-chez-97d7a64bd4ba60aaaaad4be801becdfa9330f873.tar.gz
geiser-chez-97d7a64bd4ba60aaaaad4be801becdfa9330f873.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))