[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby e91b349e4f 168/265: Hook up inf-ruby-auto-exit in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby e91b349e4f 168/265: Hook up inf-ruby-auto-exit inside inf-ruby-auto-enter |
Date: |
Sat, 9 Jul 2022 21:59:23 -0400 (EDT) |
branch: elpa/inf-ruby
commit e91b349e4f80fd5ce7609c81cd05e7b3ebef2146
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Hook up inf-ruby-auto-exit inside inf-ruby-auto-enter
---
README.md | 1 -
inf-ruby.el | 10 ++++------
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 453b4db573..21a92732c9 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,6 @@ Additionally, consider adding
```lisp
(add-hook 'compilation-filter-hook 'inf-ruby-auto-enter)
-(add-hook 'comint-input-filter-functions 'inf-ruby-auto-exit)
```
to your init file to automatically switch from common Ruby compilation
diff --git a/inf-ruby.el b/inf-ruby.el
index b01cbeb2dc..14a2141b3f 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -48,7 +48,6 @@
;; Additionally, consider adding
;;
;; (add-hook 'compilation-filter-hook 'inf-ruby-auto-enter)
-;; (add-hook 'comint-input-filter-functions 'inf-ruby-auto-exit)
;;
;; to your init file to automatically switch from common Ruby compilation
;; modes to interact with a debugger.
@@ -750,7 +749,8 @@ Gemfile, it should use the `gemspec' instruction."
(beginning-of-line)
(re-search-forward inf-ruby-breakpoint-pattern nil t)))
;; Exiting excursion before this call to get the prompt fontified.
- (inf-ruby-switch-from-compilation)))
+ (inf-ruby-switch-from-compilation)
+ (add-hook 'comint-input-filter-functions 'inf-ruby-auto-exit nil t)))
;;;###autoload
(defun inf-ruby-auto-exit (input)
@@ -763,13 +763,11 @@ Gemfile, it should use the `gemspec' instruction."
(defun inf-ruby-enable-auto-breakpoint ()
(interactive)
- (add-hook 'compilation-filter-hook 'inf-ruby-auto-enter)
- (add-hook 'comint-input-filter-functions 'inf-ruby-auto-exit))
+ (add-hook 'compilation-filter-hook 'inf-ruby-auto-enter))
(defun inf-ruby-disable-auto-breakpoint ()
(interactive)
- (remove-hook 'compilation-filter-hook 'inf-ruby-auto-enter)
- (remove-hook 'comint-input-filter-functions 'inf-ruby-auto-exit))
+ (remove-hook 'compilation-filter-hook 'inf-ruby-auto-enter))
;;;###autoload
(defun inf-ruby-console-default (dir)
- [nongnu] elpa/inf-ruby 2d65630b7d 100/265: Introduce `ruby-switch-to-last-ruby-buffer', (continued)
- [nongnu] elpa/inf-ruby 2d65630b7d 100/265: Introduce `ruby-switch-to-last-ruby-buffer', ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 2cb21b9f58 090/265: Make PAGER override unconditional, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 23929579a6 124/265: Merge pull request #57 from bbatsov/compilation-warnings, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby e4cf0593da 116/265: inf-ruby-console-gem: require the main file if it exists, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 27acc75257 113/265: inf-ruby-console-rails: prompt for the environment, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 0697315485 109/265: Merge pull request #52 from abicky/support-dir-without-traiing-slash, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 451aa1d858 145/265: Merge pull request #71 from jasonko/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 46917f463c 151/265: Integrate with projectile-rails-server-mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4962bb076e 141/265: inf-ruby-console-patterns-alist: Accept predicate function in cars, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c59d7d0a23 134/265: inf-ruby-console-default: Prioritize console.rb if it exists, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby e91b349e4f 168/265: Hook up inf-ruby-auto-exit inside inf-ruby-auto-enter,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 106972ded1 165/265: Touch up docstrings and rename MODE-VAR to MODE, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 0ed06255ec 179/265: Allow running multiple ruby processes, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 536a68528c 184/265: Make ruby-last-ruby-buffer buffer-local, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d1e6e9e669 003/265: Bugfix: Escape the completion seed., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby ed768ce413 004/265: Evaluate code sent via 'ruby-send-region' in the same binding as the REPL., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 68a7ad32fa 006/265: Bugfix: Don't stall Emacs when there is no valid completion output., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 06e2b1e29e 008/265: Bugfix: Complete only when point is at a top-level prompt., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby ec0d30ad19 019/265: Merge pull request #5 from lewang/quote_fix, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f52d33ec43 016/265: Transform an unneded case statement into an if statement., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 28c24e3e70 021/265: Merge pull request #7 from lewang/patch-1, ELPA Syncer, 2022/07/09