emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-ruby 96c48e0270 084/265: Save inf-ruby-orig-process-fi


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 96c48e0270 084/265: Save inf-ruby-orig-process-filter value locally before switching mode
Date: Sat, 9 Jul 2022 21:59:16 -0400 (EDT)

branch: elpa/inf-ruby
commit 96c48e0270cad146541cdce0880d1e783bf65fb4
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]