[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 488fc1b129 147/265: Refine the previous change
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 488fc1b129 147/265: Refine the previous change |
Date: |
Sat, 9 Jul 2022 21:59:21 -0400 (EDT) |
branch: elpa/inf-ruby
commit 488fc1b12941678c0a02ee5dd6f77ff92adf24fa
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Refine the previous change
---
inf-ruby.el | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 0f3622ac2b..63e3db49a9 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -539,9 +539,6 @@ Returns the selected completion or nil."
(defvar inf-ruby-orig-process-filter nil
"Original process filter before switching to `inf-ruby-mode'.")
-(defvar inf-ruby-orig-compilation-arguments nil
- "Original compilation arguments before switching to `inf-ruby-mode'.")
-
(defun inf-ruby-switch-from-compilation ()
"Make the buffer writable and switch to `inf-ruby-mode'.
Recommended for use when the program being executed enters
@@ -553,9 +550,8 @@ interactive mode, i.e. hits a debugger breakpoint."
(arguments compilation-arguments))
(inf-ruby-mode)
(make-local-variable 'inf-ruby-orig-compilation-mode)
- (make-local-variable 'inf-ruby-orig-compilation-arguments)
- (setq inf-ruby-orig-compilation-mode mode
- inf-ruby-orig-compilation-arguments arguments))
+ (setq inf-ruby-orig-compilation-mode mode)
+ (set (make-local-variable 'compilation-arguments) arguments))
(let ((proc (get-buffer-process (current-buffer))))
(when proc
(make-local-variable 'inf-ruby-orig-process-filter)
@@ -574,11 +570,11 @@ Otherwise, just toggle read-only status."
(if inf-ruby-orig-compilation-mode
(let ((orig-mode-line-process mode-line-process)
(proc (get-buffer-process (current-buffer)))
- (arguments inf-ruby-orig-compilation-arguments)
+ (arguments compilation-arguments)
(filter inf-ruby-orig-process-filter))
(funcall inf-ruby-orig-compilation-mode)
- (setq mode-line-process orig-mode-line-process
- compilation-arguments arguments)
+ (setq mode-line-process orig-mode-line-process)
+ (set (make-local-variable 'compilation-arguments) arguments)
(when proc
(set-process-filter proc filter)))
(toggle-read-only)))
- [nongnu] elpa/inf-ruby 33e17e055f 037/265: Move keys to a new minor mode, (continued)
- [nongnu] elpa/inf-ruby 33e17e055f 037/265: Move keys to a new minor mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 91bbd7763d 071/265: Avoid error when trying to switch to non-existing inf-ruby buffer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 54508a9923 011/265: Mac OS: Fix completion output splitting for Ruby 1.8.7 compatibility., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 74e96360b1 034/265: Added macruby to inf-ruby-implementations, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a7bb5f99e3 013/265: Pesky header stuff., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 164f2dda53 065/265: Add commands to launch different types of consoles, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d776551688 087/265: Add pry to inf-ruby-implementations, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 28b84de084 122/265: Advertise using the .pryrc workaround, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 562fa9a422 094/265: Close #37, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 55559dfaac 144/265: fix OpenStruct.new syntax to work with ruby 1.8.7, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 488fc1b129 147/265: Refine the previous change,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby aad537f010 156/265: Merge pull request #82 from mkaschenko/ruby-send-buffer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 3968234eed 150/265: Merge pull request #77 from syohex/update-url, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a2a6434bb3 163/265: Reverting to re-search-forward, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9f02c4a1c8 158/265: Adding ruby-debug pattern, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 2598a06923 164/265: Updating docstrings to follow Emacs' conventions, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8c8819f84a 167/265: Improve docs, add autoloads, rename and make interactive the setup/remove functions, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby e4337ff378 182/265: inf-ruby-console-default: Support executable "console" script as well, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby ac80ea9fd3 188/265: Make run-ruby do one thing only, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 91424afd17 192/265: inf-ruby-console-*: Make sure default-directory is set to the project root, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1dd007201a 197/265: Do not overwrite inf-ruby-buffer if it's still live, ELPA Syncer, 2022/07/09