[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby d308394e7a 041/265: inf-ruby-output-filter: Ignor
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby d308394e7a 041/265: inf-ruby-output-filter: Ignore empty strings |
Date: |
Sat, 9 Jul 2022 21:59:12 -0400 (EDT) |
branch: elpa/inf-ruby
commit d308394e7a1059132282daef9d5bc2be3098f7bb
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
inf-ruby-output-filter: Ignore empty strings
* They happen with comint-process-echoes t.
* Only modify the local comint-output-filter-functions value.
---
inf-ruby.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 215d24e085..018fcdeb22 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -144,7 +144,7 @@ to continue it."
(setq mode-name "Inf-Ruby")
(setq mode-line-process '(":%s"))
(use-local-map inf-ruby-mode-map)
- (add-to-list 'comint-output-filter-functions 'inf-ruby-output-filter)
+ (add-hook 'comint-output-filter-functions 'inf-ruby-output-filter nil t)
(setq comint-get-old-input (function inf-ruby-get-old-input))
(make-local-variable 'compilation-error-regexp-alist)
(setq compilation-error-regexp-alist inf-ruby-error-regexp-alist)
@@ -153,9 +153,10 @@ to continue it."
(defun inf-ruby-output-filter (output)
"Check if the current prompt is a top-level prompt"
- (setq inf-ruby-at-top-level-prompt-p
- (string-match inf-ruby-first-prompt-pattern
- (car (last (split-string output "\n"))))))
+ (unless (zerop (length output))
+ (setq inf-ruby-at-top-level-prompt-p
+ (string-match inf-ruby-first-prompt-pattern
+ (car (last (split-string output "\n")))))))
;; adapted from replace-in-string in XEmacs (subr.el)
(defun inf-ruby-remove-in-string (str regexp)
- [nongnu] elpa/inf-ruby 80a1c2c3d2 031/265: Fix commit 'Store non-whitespace input in the REPL history, ...', (continued)
- [nongnu] elpa/inf-ruby 80a1c2c3d2 031/265: Fix commit 'Store non-whitespace input in the REPL history, ...', ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 0b27477d11 166/265: Tweak auto-enter and auto-exit to work better (or at all), ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby db89398caa 173/265: Recognize byebug prompt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby beb39ad5af 148/265: Define and use ruby-print-result, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5c73e1a79c 143/265: Use INSIDE_EMACS, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 57b3419be3 175/265: Allow single quoted gemspec name, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 73e2142a99 194/265: Add new option inf-ruby-console-environment, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 7aa37e9154 199/265: Add ruby-send-line function, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 05984b3d24 201/265: inf-ruby-console-read-directory: Fix for predicates with wildcards, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 401f191d53 045/265: Touch up docstrings, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d308394e7a 041/265: inf-ruby-output-filter: Ignore empty strings,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 5fa2f80d4e 057/265: inf-ruby-completions: Pass _pry_ when it's defined, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 2c28bc9f57 060/265: inf-ruby-prompt-format: Include whitespace after rdb prompt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c5d2178f17 072/265: Add a basic README, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 819e67542a 114/265: inf-ruby-console-gem: really skip directories under lib, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 441cda957c 101/265: Support completion in Pry 1.0.0.pre1, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8c0aa0911b 118/265: Add "Bugs" section, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b3747e9574 127/265: Merge pull request #59 from proofit404/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9157d9c561 115/265: inf-ruby-console-gem: when gemspec doesn't modify LOAD_PATH, -I lib, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4da1cca555 079/265: Set process filter in inf-ruby-switch-to-compilation, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a960434970 096/265: run-ruby: write better docstring, ELPA Syncer, 2022/07/09