branch: elpa/inf-ruby
commit 5fa2849dd0b59505ead4038b092629a9d22513fd
Author: Cornelius Mika <[email protected]>
Commit: Cornelius Mika <[email protected]>
Store non-whitespace input in the REPL history, regardless of character
length.
The former behaviour to exclude 1-2 letter inputs was rather unintuitive.
---
inf-ruby.el | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index c982c4cc49..971223c1de 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -136,7 +136,7 @@ to continue it."
(setq mode-name "Inf-Ruby")
(setq mode-line-process '(":%s"))
(use-local-map inf-ruby-mode-map)
- (setq comint-input-filter (function inf-ruby-input-filter))
+ (setq comint-input-filter comint-input-filter)
(add-to-list 'comint-output-filter-functions 'inf-ruby-output-filter)
(setq comint-get-old-input (function inf-ruby-get-old-input))
(make-local-variable 'compilation-error-regexp-alist)
@@ -144,14 +144,6 @@ to continue it."
(compilation-shell-minor-mode t)
(run-hooks 'inf-ruby-mode-hook))
-(defvar inf-ruby-filter-regexp "\\`\\s *\\S ?\\S ?\\s *\\'"
- "*Input matching this regexp are not saved on the history list.
-Defaults to a regexp ignoring all inputs of 0, 1, or 2 letters.")
-
-(defun inf-ruby-input-filter (str)
- "Don't save anything matching inf-ruby-filter-regexp"
- (not (string-match inf-ruby-filter-regexp str)))
-
(defun inf-ruby-output-filter (output)
"Check if the current prompt is a top-level prompt"
(setq inf-ruby-at-top-level-prompt-p