[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 03e969c89a 146/265: Retain compilation-arguments
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 03e969c89a 146/265: Retain compilation-arguments |
Date: |
Sat, 9 Jul 2022 21:59:21 -0400 (EDT) |
branch: elpa/inf-ruby
commit 03e969c89a0f9e2196a3dad28caa7bfaa0ec188a
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Retain compilation-arguments
---
inf-ruby.el | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index a6d4b14da8..0f3622ac2b 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -539,6 +539,9 @@ 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
@@ -546,10 +549,13 @@ interactive mode, i.e. hits a debugger breakpoint."
(interactive)
(setq buffer-read-only nil)
(buffer-enable-undo)
- (let ((mode major-mode))
+ (let ((mode major-mode)
+ (arguments compilation-arguments))
(inf-ruby-mode)
(make-local-variable 'inf-ruby-orig-compilation-mode)
- (setq inf-ruby-orig-compilation-mode mode))
+ (make-local-variable 'inf-ruby-orig-compilation-arguments)
+ (setq inf-ruby-orig-compilation-mode mode
+ inf-ruby-orig-compilation-arguments arguments))
(let ((proc (get-buffer-process (current-buffer))))
(when proc
(make-local-variable 'inf-ruby-orig-process-filter)
@@ -568,9 +574,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)
(filter inf-ruby-orig-process-filter))
(funcall inf-ruby-orig-compilation-mode)
- (setq mode-line-process orig-mode-line-process)
+ (setq mode-line-process orig-mode-line-process
+ compilation-arguments arguments)
(when proc
(set-process-filter proc filter)))
(toggle-read-only)))
- [nongnu] elpa/inf-ruby d4d2451d16 111/265: Apply `defcustom` fixes, (continued)
- [nongnu] elpa/inf-ruby d4d2451d16 111/265: Apply `defcustom` fixes, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby fd84092271 099/265: Merge pull request #43 from hrvladev/fix-readme-typo, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 14ca8ddda5 098/265: Fix code indication in the readme, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8979f51c53 126/265: Start console.rb through bundler., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby db0bdf3f38 107/265: Merge pull request #50 from avsej/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 2cebc69ecd 095/265: Remove some outdated code, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6c00b018bf 142/265: inf-ruby-console-rails-p: Use a stricter check, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d130ede56a 133/265: Define a proper completion function, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b31b7d3061 137/265: inf-ruby-console-patterns-alist: Detect Rails by the presence of bin/rails, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1f69ae4baf 157/265: Automatically entering inf-ruby on pry, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 03e969c89a 146/265: Retain compilation-arguments,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 7f8f32e7d0 154/265: Use 'point-min instead of the hardcoded value, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 45af13a729 172/265: Recognize byebug prompt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8b198d01e9 180/265: Merge pull request #93 from sideshowcoder/zeus-console-support, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c14a68d164 207/265: Specify environment correctly, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5ae6149a15 211/265: Merge pull request #110 from ppiotrowicz/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a986a1a8c6 260/265: Fix broken behaviour on load-current-ruby-file fn, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby dbf4386bac 264/265: Use a more uniform style, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1940f90fde 017/265: Version 2.2.3, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b45b057006 044/265: Fix syntax error highlighting, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a85ae010c6 046/265: Handle different prompts, not just the IRB default, ELPA Syncer, 2022/07/09