summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-04-12 01:05:34 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-04-12 01:10:17 +0200
commit1b37dceb787691c5b8cb1dcbc86d622ec9b938b4 (patch)
treef0d93e0ea410b6c723c76f7af20ecf91f66c235e
parent5b1b700926173c1ffa11fae558bce06b31c0bc30 (diff)
downloadgeiser-1b37dceb787691c5b8cb1dcbc86d622ec9b938b4.tar.gz
geiser-1b37dceb787691c5b8cb1dcbc86d622ec9b938b4.tar.bz2
A bit of documentation for the previous patches
-rw-r--r--AUTHORS9
-rw-r--r--NEWS2
-rw-r--r--doc/parens.texi4
-rw-r--r--elisp/geiser-mode.el9
4 files changed, 19 insertions, 5 deletions
diff --git a/AUTHORS b/AUTHORS
index 961ad9f..115a355 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -4,8 +4,9 @@ is its active maintainer. For more boring details about him, see
Contributors:
-Michael Wilber implemented the initial Racket image support modules.
-Jonas Rodrigues implemented the initial version of geiser-repl-clear-buffer.
-Ray Racine implemented geiser-edit-insert-lambda.
+Michael Wilber
+Diogo F. S. Ramos
+Jonas Rodrigues
+Ray Racine
-See also the files THANKS and ChangeLog.
+See also <https://github.com/jaor/geiser/contributors>.
diff --git a/NEWS b/NEWS
index 24da8e3..7785859 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,8 @@
- Configurable case-sensitivity when highlighting keywords (thanks
to Diogo F.S. Ramos), via geiser-guile-case-sensitive-p and
geiser-racket-case-sensitive-pp
+ - C-u C-x C-e to insert evaluation result in buffer (thanks to
+ Diogo).
- New flag geiser-repl-query-on-kill-p to control whether emacs
will ask for confirmation before killing a buffer with a live
REPL process.
diff --git a/doc/parens.texi b/doc/parens.texi
index de88cf5..3ca9390 100644
--- a/doc/parens.texi
+++ b/doc/parens.texi
@@ -438,7 +438,9 @@ For all of you bearded old lispers still with me, here are some of the
commands performing incremental evaluation in Geiser.
@code{geiser-eval-last-sexp}, bound to @kbd{C-x C-e}, will eval the
-s-expression just before point.
+s-expression just before point. If you use a prefix, as in @kbd{C-u C-x
+C-e}, besides evaluating it the expression is inserted in the the
+buffer.
@code{geiser-eval-definition}, bound to @kbd{C-M-x}, finds the topmost
definition containing point and sends it for evaluation. The variant
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index 8d66a8a..4d43d1b 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -74,6 +74,7 @@ active when `geiser-mode' is activated in a buffer."
(defun geiser-eval-region (start end &optional and-go raw nomsg)
"Eval the current region in the Geiser REPL.
+
With prefix, goes to the REPL buffer afterwards (as
`geiser-eval-region-and-go')"
(interactive "rP")
@@ -94,6 +95,7 @@ With prefix, goes to the REPL buffer afterwards (as
(defun geiser-eval-definition (&optional and-go)
"Eval the current definition in the Geiser REPL.
+
With prefix, goes to the REPL buffer afterwards (as
`geiser-eval-definition-and-go')"
(interactive "P")
@@ -110,6 +112,7 @@ With prefix, goes to the REPL buffer afterwards (as
(defun geiser-eval-last-sexp (print-to-buffer-p)
"Eval the previous sexp in the Geiser REPL.
+
With a prefix, print the result of the evaluation to the buffer."
(interactive "P")
(let* ((ret (geiser-eval-region (save-excursion (backward-sexp) (point))
@@ -124,6 +127,7 @@ With a prefix, print the result of the evaluation to the buffer."
(defun geiser-compile-definition (&optional and-go)
"Compile the current definition in the Geiser REPL.
+
With prefix, goes to the REPL buffer afterwards (as
`geiser-eval-definition-and-go')"
(interactive "P")
@@ -150,6 +154,7 @@ With prefix, recursively macro-expand the resulting expression."
(defun geiser-expand-definition (&optional all)
"Macro-expand the current definition.
+
With prefix, recursively macro-expand the resulting expression."
(interactive "P")
(save-excursion
@@ -160,6 +165,7 @@ With prefix, recursively macro-expand the resulting expression."
(defun geiser-expand-last-sexp (&optional all)
"Macro-expand the previous sexp.
+
With prefix, recursively macro-expand the resulting expression."
(interactive "P")
(geiser-expand-region (save-excursion (backward-sexp) (point))
@@ -176,6 +182,7 @@ With prefix, recursively macro-expand the resulting expression."
(defun geiser-mode-switch-to-repl (arg)
"Switches to Geiser REPL.
+
With prefix, try to enter the current buffer's module."
(interactive "P")
(if arg
@@ -201,6 +208,7 @@ With prefix, try to enter the current buffer's module."
(defun geiser-squarify (n)
"Toggle between () and [] for current form.
+
With numeric prefix, perform that many toggles, forward for
positive values and backward for negative."
(interactive "p")
@@ -251,6 +259,7 @@ positive values and backward for negative."
(define-minor-mode geiser-mode
"Toggle Geiser's mode.
+
With no argument, this command toggles the mode.
Non-null prefix argument turns on the mode.
Null prefix argument turns off the mode.