branch: elpa/inf-ruby
commit 96c48e0270cad146541cdce0880d1e783bf65fb4
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Save inf-ruby-orig-process-filter value locally before switching mode
---
inf-ruby.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 680aba0c24..2f8ebca462 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -485,11 +485,12 @@ Otherwise, just toggle read-only status."
(interactive)
(if inf-ruby-orig-compilation-mode
(let ((orig-mode-line-process mode-line-process)
- (proc (get-buffer-process (current-buffer))))
+ (proc (get-buffer-process (current-buffer)))
+ (filter inf-ruby-orig-process-filter))
(funcall inf-ruby-orig-compilation-mode)
(setq mode-line-process orig-mode-line-process)
(when proc
- (set-process-filter proc inf-ruby-orig-process-filter)))
+ (set-process-filter proc filter)))
(toggle-read-only)))
;;;###autoload