[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby c2bb2f7186 215/265: Add ruby-send-{buffer, line}-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby c2bb2f7186 215/265: Add ruby-send-{buffer, line}-and-go commands |
Date: |
Sat, 9 Jul 2022 21:59:27 -0400 (EDT) |
branch: elpa/inf-ruby
commit c2bb2f718622157e44bc291612ac2f3ae04b50f9
Author: p-sdk <paul.sdk@icloud.com>
Commit: p-sdk <paul.sdk@icloud.com>
Add ruby-send-{buffer,line}-and-go commands
---
inf-ruby.el | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/inf-ruby.el b/inf-ruby.el
index 25607b0d9f..988330801b 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -571,6 +571,13 @@ Then switch to the process buffer."
(widen)
(ruby-send-region (point-min) (point-max))))
+(defun ruby-send-buffer-and-go ()
+ "Send the current buffer to the inferior Ruby process.
+Then switch to the process buffer."
+ (interactive)
+ (ruby-send-buffer)
+ (ruby-switch-to-inf t))
+
(defun ruby-send-line ()
"Send the current line to the inferior Ruby process."
(interactive)
@@ -578,6 +585,13 @@ Then switch to the process buffer."
(widen)
(ruby-send-region (point-at-bol) (point-at-eol))))
+(defun ruby-send-line-and-go ()
+ "Send the current line to the inferior Ruby process.
+Then switch to the process buffer."
+ (interactive)
+ (ruby-send-line)
+ (ruby-switch-to-inf t))
+
(defun ruby-escape-single-quoted (str)
"Escape single quotes, double quotes and newlines in STR."
(replace-regexp-in-string "'" "\\\\'"
- [nongnu] elpa/inf-ruby 0f0eb184f0 088/265: Bump the version, (continued)
- [nongnu] elpa/inf-ruby 0f0eb184f0 088/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f062b7eb0b 075/265: Merge remote-tracking branch 'bbatsov/readme', ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8fa68039c8 160/265: Improving inf-ruby-breakpoint-pattern and in-ruby-compilation-modes, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5bb2919691 155/265: Keep the buffer's restrictions, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby e18c8c3624 162/265: Considering ^D as a valid exit command, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4d410007a2 169/265: Fix ruby-send-definition, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9c4d799faf 183/265: inf-ruby-console-zeus: Add docstring, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 700c453610 181/265: Merge pull request #91 from asok/multi, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 54eb6bf6d6 185/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 57710da5c8 214/265: inf-ruby-console-gem: Use '--prompt default --noreadline', ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c2bb2f7186 215/265: Add ruby-send-{buffer, line}-and-go commands,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 6bfa7c9411 217/265: Add `ansi-color-process-output` to comint output functions, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d2cc45ac1a 221/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4a7ed23971 222/265: Revert "Add `ansi-color-process-output` to comint output functions", ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 928b1dd2c2 223/265: Merge pull request #123 from nonsequitur/revert-118-master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b228a7d9af 225/265: inf-ruby-error-regexp-alist: bol-anchor for better performance, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1b89400e6f 227/265: Add '--nomultiline' with newer IRB versions, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 41e5ed3a88 229/265: run-ruby: Update for the latest change, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6291121307 236/265: It is a triangle, right?, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 2ec94b4b33 237/265: Exclude --noreadline when Irb version is > 1.2.0, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby bb7d4ca086 240/265: Merge pull request #141 from sharmanr/send-definition, ELPA Syncer, 2022/07/09