[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 5fa2849dd0 028/265: Store non-whitespace input in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 5fa2849dd0 028/265: Store non-whitespace input in the REPL history, regardless of character length. |
Date: |
Sat, 9 Jul 2022 21:59:11 -0400 (EDT) |
branch: elpa/inf-ruby
commit 5fa2849dd0b59505ead4038b092629a9d22513fd
Author: Cornelius Mika <cornelius.mika@gmail.com>
Commit: Cornelius Mika <cornelius.mika@gmail.com>
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
- [nongnu] branch elpa/inf-ruby created (now 4ddf6b3889), ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c9a24aee52 005/265: Bugfix: Exclude input to IRB from the completion result., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6ad10268b3 007/265: Bugfix: Remove meaningless error check which causes a more severe error in the first place by not restoring the comint-filter., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5e9912fadb 002/265: Allow sending code from non-file buffers., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 13c0040b6e 009/265: Create non-indenting completion function 'inf-ruby-complete'., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b5aa6c51fe 027/265: [Refactor] Use defsubst for 'inf-ruby-fix-completions-on-windows', ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby fe0547b16d 032/265: [Refactor] Use 'kbd' macro for key bindings, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 60f9cfa181 001/265: Initial revision., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c63972e2de 014/265: Package header: Don't require ruby-mode., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5fa2849dd0 028/265: Store non-whitespace input in the REPL history, regardless of character length.,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 89147d2ab1 056/265: inf-ruby-completions: Get rid of the last semicolon, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c08bb93df2 040/265: inf-ruby-load-file is not defined, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 90762203f3 055/265: inf-ruby-switch-from-compilation: Change the process filter, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4873a66a4d 054/265: inf-ruby-completions: Use 'then' instead of semicolons, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 7fc1e32ae7 050/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 530ac4f2fc 036/265: inf-ruby-mode: Modify the docstring, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 98fac55a80 049/265: Define inf-ruby-switch-from-compilation, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby fc1dffaeed 052/265: inf-ruby-prompt-format: Include debugger prompt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby ebceb38165 058/265: inf-ruby-prompt-format: Fix not to match single operator chars, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c749e54eee 063/265: Support Bond completion, ELPA Syncer, 2022/07/09