summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-debug.el2
-rw-r--r--elisp/geiser-doc.el4
-rw-r--r--elisp/geiser-impl.el6
-rw-r--r--elisp/geiser-mode.el2
-rw-r--r--elisp/geiser-repl.el26
-rw-r--r--elisp/geiser.el2
6 files changed, 24 insertions, 18 deletions
diff --git a/elisp/geiser-debug.el b/elisp/geiser-debug.el
index e8392e6..9b60732 100644
--- a/elisp/geiser-debug.el
+++ b/elisp/geiser-debug.el
@@ -231,8 +231,6 @@ buffer.")
(newline 2)
(and no (> no 0))))))
-(declare-function switch-to-geiser "geiser-repl")
-
(defun geiser-debug--display-retort (what ret &optional res _auto-p)
(let* ((err (geiser-eval--retort-error ret))
(key (geiser-eval--error-key err))
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index f8e2beb..8aca591 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -291,11 +291,11 @@ help (e.g. browse an HTML page) implementing this method.")
map)
"Keymap for `geiser-doc-mode'.")
-(declare-function switch-to-geiser "geiser-repl")
+(declare-function geiser-repl--switch-to-repl "geiser-repl")
(defun geiser-doc-switch-to-repl ()
(interactive)
- (switch-to-geiser nil nil (current-buffer)))
+ (geiser-repl--switch-to-repl))
(geiser-menu--defmenu doc geiser-doc-mode-map
("Next link" ("n") forward-button)
diff --git a/elisp/geiser-impl.el b/elisp/geiser-impl.el
index 67258cc..67af8f4 100644
--- a/elisp/geiser-impl.el
+++ b/elisp/geiser-impl.el
@@ -211,7 +211,8 @@ switcher (switch-to-NAME), and provides geiser-NAME."
(unless (symbolp name)
(error "Malformed implementation name: %s" name))
(let ((runner (intern (format "run-%s" name)))
- (switcher (intern (format "switch-to-%s" name)))
+ (old-switcher (intern (format "switch-to-%s" name)))
+ (switcher (intern (format "geiser-%s-switch" name)))
(runner-doc (format "Start a new %s REPL." name))
(switcher-doc (format "Switch to a running %s REPL, or start one."
name))
@@ -224,10 +225,11 @@ switcher (switch-to-NAME), and provides geiser-NAME."
,runner-doc
(interactive)
(run-geiser ',name))
+ (define-obsolete-function-alias ',old-switcher ',switcher "Geiser 0.26")
(defun ,switcher (&optional ,ask)
,switcher-doc
(interactive "P")
- (switch-to-geiser ,ask ',name))
+ (geiser-repl-switch ,ask ',name))
(geiser-menu--add-impl ',name ',runner ',switcher)))))
;;;###autoload
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index bc074f0..464bf45 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -86,7 +86,7 @@ result is an error msg."
;;; Evaluation commands:
(defun geiser--go-to-repl ()
- (switch-to-geiser nil nil (current-buffer))
+ (geiser-repl--switch-to-repl)
(push-mark)
(goto-char (point-max)))
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index bf26f1a..95137c4 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -751,7 +751,7 @@ If SAVE-HISTORY is non-nil, save CMD in the REPL history."
(insert "\nIt's been nice interacting with you!\n")
(insert
(substitute-command-keys
- "Press \\[switch-to-geiser] to bring me back.\n")))))))
+ "Press \\[geiser-repl-switch] to bring me back.\n")))))))
(defun geiser-repl--on-kill ()
(geiser-repl--on-quit)
@@ -835,7 +835,7 @@ If SAVE-HISTORY is non-nil, save CMD in the REPL history."
(comint-send-string proc "\n")))))
(define-obsolete-function-alias 'geiser-repl--maybe-send
- #'geiser-repl-maybe-send "0.25.2")
+ #'geiser-repl-maybe-send "0.26")
(defun geiser-repl-maybe-send ()
"Handle the current input at the REPL's prompt.
@@ -907,7 +907,7 @@ buffer."
:enable (geiser--symbol-at-point))
--
("Load scheme file..." "\C-c\C-l" geiser-load-file)
- ("Switch to module..." "\C-c\C-m" switch-to-geiser-module)
+ ("Switch to module..." "\C-c\C-m" geiser-repl-switch-to-module)
("Import module..." "\C-c\C-i" geiser-repl-import-module)
("Add to load path..." "\C-c\C-r" geiser-add-to-load-path)
--
@@ -940,7 +940,8 @@ buffer."
--
("Kill Scheme interpreter" "\C-c\C-q" geiser-repl-exit
:enable (geiser-repl--live-p))
- ("Restart" "\C-c\C-z" switch-to-geiser :enable (not (geiser-repl--live-p)))
+ ("Restart" "\C-c\C-z" geiser-repl-switch
+ :enable (not (geiser-repl--live-p)))
--
(custom "REPL options" geiser-repl))
@@ -1024,7 +1025,9 @@ over a Unix-domain socket."
(save-window-excursion
(with-current-buffer b (funcall cmd)))))
-(defun switch-to-geiser (&optional ask impl buffer)
+(define-obsolete-function-alias 'switch-to-geiser 'geiser-repl-switch "0.26")
+
+(defun geiser-repl-switch (&optional ask impl buffer)
"Switch to running Geiser REPL.
If REPL is the current buffer, switch to the previously used
@@ -1053,7 +1056,10 @@ If no REPL is running, execute `run-geiser' to start a fresh one."
(t (call-interactively 'run-geiser)))
(geiser-repl--maybe-remember-scm-buffer buffer)))
-(defun switch-to-geiser-module (&optional module buffer)
+(define-obsolete-function-alias 'switch-to-geiser-module
+ 'geiser-repl-switch-to-module "0.26")
+
+(defun geiser-repl-switch-to-module (&optional module buffer)
"Switch to running Geiser REPL and try to enter a given module."
(interactive)
(let* ((module (or module
@@ -1063,13 +1069,13 @@ If no REPL is running, execute `run-geiser' to start a fresh one."
(geiser-repl--enter-cmd geiser-impl--implementation
module))))
(unless (eq major-mode 'geiser-repl-mode)
- (switch-to-geiser nil nil (or buffer (current-buffer))))
+ (geiser-repl-switch nil nil (or buffer (current-buffer))))
(geiser-repl--send cmd)))
(defun geiser-repl--switch-to-repl (arg)
(if arg
- (switch-to-geiser-module (geiser-eval--get-module) (current-buffer))
- (switch-to-geiser nil nil (current-buffer))))
+ (geiser-repl-switch-to-module (geiser-eval--get-module) (current-buffer))
+ (geiser-repl-switch nil nil (current-buffer))))
(defun geiser-repl--repl-buffer-p ()
(and (buffer-live-p geiser-repl--repl) geiser-repl--repl))
@@ -1096,7 +1102,7 @@ If no REPL is running, execute `run-geiser' to start a fresh one."
(cmd (and module
(geiser-repl--import-cmd geiser-impl--implementation
module))))
- (switch-to-geiser nil nil (current-buffer))
+ (geiser-repl--switch-to-repl)
(geiser-repl--send cmd)))
(defun geiser-repl-exit (&optional arg)
diff --git a/elisp/geiser.el b/elisp/geiser.el
index f9a246c..89aad33 100644
--- a/elisp/geiser.el
+++ b/elisp/geiser.el
@@ -86,7 +86,7 @@
t)
;;;###autoload
-(autoload 'switch-to-geiser "geiser-repl"
+(autoload 'geiser-repl-switch "geiser-repl"
"Switch to a running one Geiser REPL." t)
;;;###autoload