branch: elpa/inf-ruby
commit 5e9912fadb09a77f00a854510a01e9eda2334abf
Author: Cornelius Mika <[email protected]>
Commit: Cornelius Mika <[email protected]>
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)