summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-10-23 01:09:27 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-10-23 01:09:27 +0200
commit5f357d12363d9b214bab82ba12447d657733a289 (patch)
tree928ddd171ec15b95ba4bbd52f3bcd1e62979b91e /elisp
parent5e1a4995ee1211f2a57d4fce4101b81be13d87db (diff)
downloadgeiser-chez-5f357d12363d9b214bab82ba12447d657733a289.tar.gz
geiser-chez-5f357d12363d9b214bab82ba12447d657733a289.tar.bz2
New custom var `geiser-repl-save-debugging-history-p'
This variable controls whether REPL command history should contain inputs during the debugger sessions (for schemes with such a thing, that is, for Guile).
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-repl.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index b586efa..449a136 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -65,6 +65,15 @@ implementation name gets appended to it."
:type 'boolean
:group 'geiser-repl)
+(geiser-custom--defcustom geiser-repl-save-debugging-history-p nil
+ "Whether to skip 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
+change that."
+ :type 'boolean
+ :group 'geiser-repl)
+
(geiser-custom--defcustom geiser-repl-autodoc-p t
"Whether to enable `geiser-autodoc-mode' in the REPL by default."
:type 'boolean
@@ -441,7 +450,8 @@ module command as a string")
(remove (current-buffer) geiser-repl--closed-repls)))
(defun geiser-repl--input-filter (str)
- (not (or (geiser-repl--is-debugging)
+ (not (or (and (not geiser-repl-save-debugging-history-p)
+ (geiser-repl--is-debugging))
(string-match "^\\s *$" str)
(string-match "^,quit *$" str))))