[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby fe1ea9925c 226/265: Restore original compilation-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby fe1ea9925c 226/265: Restore original compilation-error-regexp-alist |
Date: |
Sat, 9 Jul 2022 21:59:28 -0400 (EDT) |
branch: elpa/inf-ruby
commit fe1ea9925c6a6cfa7620fe13ea7769e264494749
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Restore original compilation-error-regexp-alist
---
inf-ruby.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 02a222d294..abb2fa4360 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -692,6 +692,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-error-regexp-alist nil
+ "Original `compilation-error-regexp-alist' 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
@@ -701,11 +704,14 @@ interactive mode, i.e. hits a debugger breakpoint."
(buffer-enable-undo)
(let ((mode major-mode)
(arguments compilation-arguments)
- (orig-mode-line-process mode-line-process))
+ (orig-mode-line-process mode-line-process)
+ (orig-error-alist compilation-error-regexp-alist))
(inf-ruby-mode)
(make-local-variable 'inf-ruby-orig-compilation-mode)
(setq inf-ruby-orig-compilation-mode mode)
(set (make-local-variable 'compilation-arguments) arguments)
+ (set (make-local-variable 'inf-ruby-orig-error-regexp-alist)
+ orig-error-alist)
(when orig-mode-line-process
(setq mode-line-process orig-mode-line-process)))
(let ((proc (get-buffer-process (current-buffer))))
@@ -727,10 +733,12 @@ Otherwise, just toggle read-only status."
(let ((orig-mode-line-process mode-line-process)
(proc (get-buffer-process (current-buffer)))
(arguments compilation-arguments)
- (filter inf-ruby-orig-process-filter))
+ (filter inf-ruby-orig-process-filter)
+ (errors inf-ruby-orig-error-regexp-alist))
(funcall inf-ruby-orig-compilation-mode)
(setq mode-line-process orig-mode-line-process)
(set (make-local-variable 'compilation-arguments) arguments)
+ (set (make-local-variable 'compilation-error-regexp-alist) errors)
(when proc
(set-process-filter proc filter)))
(toggle-read-only)))
- [nongnu] elpa/inf-ruby b45b057006 044/265: Fix syntax error highlighting, (continued)
- [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
- [nongnu] elpa/inf-ruby 310da805b6 129/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 67629312ad 120/265: Work around pry/pry#1267, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 866483eecc 190/265: Fix a comment, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c45cd825e0 195/265: inf-ruby-mode: Use define-derived-mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby bf380c13e5 198/265: Support JRuby 9000 RVM prompt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a4b1c40202 204/265: inf-ruby-console-script: Extract from ...-default, and up its priority, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 674a2a837f 209/265: Drop a newline and link to the wiki page directly, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1a5aebea0d 213/265: Bring back interactive run-ruby, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby fe1ea9925c 226/265: Restore original compilation-error-regexp-alist,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 9bfbce42be 241/265: Untabify and reformat the new code a little, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 92d5d122fa 245/265: Use 'bundle exec' in nomultiline check when needed, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby bcdb97983c 257/265: Merge pull request #154 from tunnes/feature-create-load-current-ruby-file, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5143c84f91 189/265: inf-ruby-proc: Fall back to inf-ruby-buffer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5b24985b0e 135/265: Check IRB is defined before using it, fixes #64, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f908b1f506 136/265: Merge pull request #65 from iqbalansari/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 0af69257a4 138/265: Clarify the "usage" section, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 12d1d35f73 153/265: Add ruby-send-buffer function, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d39ea0bd59 212/265: Use a more common idea of prefix, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 227a80fc52 176/265: Correct regexp, ELPA Syncer, 2022/07/09