Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Store non-whitespace input in the REPL history, regardless of charact…

…er length.

The former behaviour to exclude 1-2 letter inputs was rather unintuitive.
  • Loading branch information...
1 parent b5aa6c5 commit 5fa2849dd0b59505ead4038b092629a9d22513fd @nonsequitur committed
Showing with 1 addition and 9 deletions.
  1. +1 −9 inf-ruby.el
10 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

0 comments on commit 5fa2849

Please sign in to comment.
Something went wrong with that request. Please try again.