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

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

[nongnu] elpa/inf-ruby 5e9912fadb 002/265: Allow sending code from non-f


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 5e9912fadb 002/265: Allow sending code from non-file buffers.
Date: Sat, 9 Jul 2022 21:59:09 -0400 (EDT)

branch: elpa/inf-ruby
commit 5e9912fadb09a77f00a854510a01e9eda2334abf
Author: Cornelius Mika <cornelius.mika@gmail.com>
Commit: Cornelius Mika <cornelius.mika@gmail.com>

    Allow sending code from non-file buffers.
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 182d93a32d..698825bf1c 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -224,7 +224,7 @@ Must not contain ruby meta characters.")
 (defun ruby-send-region (start end)
   "Send the current region to the inferior Ruby process."
   (interactive "r")
-  (let (term (file (buffer-file-name)) line)
+  (let (term (file (or buffer-file-name (buffer-name))) line)
     (save-excursion
       (save-restriction
         (widen)



reply via email to

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