emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-ruby 12d1d35f73 153/265: Add ruby-send-buffer function


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 12d1d35f73 153/265: Add ruby-send-buffer function
Date: Sat, 9 Jul 2022 21:59:21 -0400 (EDT)

branch: elpa/inf-ruby
commit 12d1d35f73f8da1f5e54ec1e65a946787ab8c26c
Author: Maxim Kashchenko <mkaschenko@me.com>
Commit: Maxim Kashchenko <mkaschenko@me.com>

    Add ruby-send-buffer function
    
    Closes #81.
---
 inf-ruby.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/inf-ruby.el b/inf-ruby.el
index dd063bf916..b24f72a0be 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -475,6 +475,11 @@ Then switch to the process buffer."
                                               file-name
                                               "\"\)\n")))
 
+(defun ruby-send-buffer ()
+  "Send the current buffer to the inferior Ruby process."
+  (interactive)
+  (ruby-send-region 1 (point-max)))
+
 (defun ruby-escape-single-quoted (str)
   "Escape single quotes, double quotes and newlines in STR."
   (replace-regexp-in-string "'" "\\\\'"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]