summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-12-20 20:43:49 +0000
committerjao <jao@gnu.org>2021-12-20 20:43:49 +0000
commit0a7d55f34f09776a16d3e81521ee8cd081f3b717 (patch)
tree773d69ea0b3efa23699857243d2872b2052fc8dc /elisp/geiser-repl.el
parentc5f6a8ac9ebdce93d4b551342accd2c85c4f7030 (diff)
downloadgeiser-0a7d55f34f09776a16d3e81521ee8cd081f3b717.tar.gz
geiser-0a7d55f34f09776a16d3e81521ee8cd081f3b717.tar.bz2
Tweaks for boundary conditions
Like quitting a REPL right after opening it, or calling evaluation functions in the wrong, non-scheme buffer.
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r--elisp/geiser-repl.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 3fd9f92..a6c2e92 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -86,8 +86,8 @@ implementation name gets appended to it."
"Whether to skip duplicates when recording history."
:type 'boolean)
-(geiser-custom--defcustom geiser-repl-save-debugging-history-p nil
- "Whether to skip debugging input in REPL history.
+(geiser-custom--defcustom geiser-repl-save-debugging-history-p t
+ "Whether to save debugging input in REPL history.
By default, REPL interactions while scheme is in the debugger are
not added to the REPL command history. Set this variable to t to
@@ -483,8 +483,8 @@ will be set up using `geiser-connect-local' when a REPL is started.")
(defun geiser-repl--treat-output-region ()
(with-silent-modifications
- (add-text-properties (1- geiser-repl--last-output-start)
- geiser-repl--last-output-end
+ (add-text-properties (max (point-min) (1- geiser-repl--last-output-start))
+ (min geiser-repl--last-output-end (point-max))
`(read-only ,geiser-repl-read-only-output-p))
(geiser-repl--fontify-output-region geiser-repl--last-output-start
geiser-repl--last-output-end)