summaryrefslogtreecommitdiff
path: root/elisp/geiser-impl.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-08-25 01:46:42 +0100
committerjao <jao@gnu.org>2022-08-25 01:46:42 +0100
commit247c7d5f93539f7e183909917d8f3eab7156ed47 (patch)
tree76506af90e014c90046393501160d9237e570d2a /elisp/geiser-impl.el
parent669960e216131b1ef5e26a368e28053eeab8aa9a (diff)
downloadgeiser-247c7d5f93539f7e183909917d8f3eab7156ed47.tar.gz
geiser-247c7d5f93539f7e183909917d8f3eab7156ed47.tar.bz2
run-geiser obsoleted (just use M-x geiser)
Diffstat (limited to 'elisp/geiser-impl.el')
-rw-r--r--elisp/geiser-impl.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/elisp/geiser-impl.el b/elisp/geiser-impl.el
index 67af8f4..689388b 100644
--- a/elisp/geiser-impl.el
+++ b/elisp/geiser-impl.el
@@ -204,27 +204,29 @@ Here's how a typical call to this macro looks like:
(keywords geiser-guile--keywords)
(case-sensitive geiser-guile-case-sensitive-p))
-This macro also defines a runner function (run-NAME) and a
-switcher (switch-to-NAME), and provides geiser-NAME."
+This macro also defines a runner function (geiser-NAME) and a
+switcher (geiser-NAME-switch), and provides geiser-NAME."
(let ((name (if (listp name) (car name) name))
(parent (and (listp name) (cadr name))))
(unless (symbolp name)
(error "Malformed implementation name: %s" name))
- (let ((runner (intern (format "run-%s" name)))
+ (let ((old-runner (intern (format "run-%s" name)))
+ (runner (intern (format "geiser-%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))
- (ask (make-symbol "ask")))
+ (ask (gensym "ask")))
`(progn
(geiser-impl--define load-file-name ',name ',parent ',methods)
(require 'geiser-repl)
(require 'geiser-menu)
+ (define-obsolete-function-alias ',old-runner ',runner "Geiser 0.26")
(defun ,runner ()
,runner-doc
(interactive)
- (run-geiser ',name))
+ (geiser ',name))
(define-obsolete-function-alias ',old-switcher ',switcher "Geiser 0.26")
(defun ,switcher (&optional ,ask)
,switcher-doc