From: Ryan Davis Date: 2011-04-15T04:04:42+09:00 Subject: Re: Running Ruby script in emacs On Apr 14, 2011, at 10:41 , duke wrote: > Hey ... > > I'm taking my first steps with Ruby. I have ruby-mode loaded and > working. I also have run-ruby, but we'll forget about that for the > moment. > > I have a working script that I want to "compile" and run while in ruby- > mode. I grok how to compile it - no worries there. The script asks for > input from the user. That's what I don't know how to do! Is there a > way to input a value while in the 'compilation' process? TIA... M-x compile doesn't allow for interactive use, so you don't want that. I use M-x shell for almost all these scenarios (and nearly all other shell use, really). You can also look at my autotest.el if you're wanting to make something shell-like but more tweaked out for your use. You can find that on emacswiki.