From 5e9912fadb09a77f00a854510a01e9eda2334abf Mon Sep 17 00:00:00 2001 From: Cornelius Mika Date: Sun, 18 Jul 2010 17:18:46 +0200 Subject: [PATCH] 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 182d93a..698825b 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)