From 5f357d12363d9b214bab82ba12447d657733a289 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 23 Oct 2012 01:09:27 +0200 Subject: 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). --- elisp/geiser-repl.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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)))) -- cgit v1.2.3