Irbsh ([1] and [2]) is an extension of irb/inf-ruby.el (provided by app-emacs/ruby-mode or app-xemacs/ruby-modes). You can easily execute shell commands and Ruby codes by using irbsh. [1] http://www.rubyist.net/~rubikitch/computer/irbsh/index.en.html [2] http://raa.ruby-lang.org/project/irbsh
I've attached an ebuild for this. Please unpack it into your overlay and test it and I will move it into portage.
Created attachment 82679 [details] irbsh-1.0.0-ebuild.tar.gz ~ $ tar tfz irbsh-1.0.0-ebuild.tar.gz app-emacs/irbsh/ app-emacs/irbsh/files/ app-emacs/irbsh/files/digest-irbsh-1.0.0 app-emacs/irbsh/files/60irbsh-gentoo.el app-emacs/irbsh/irbsh-1.0.0.ebuild app-emacs/irbsh/metadata.xml app-emacs/irbsh/Manifest
app-emacs/ruby-mode should have been in DEPEND. Fixed it in my version, but not attaching a new version here.
Hi Matthew, I've tried the ebuild and added ruby-mode to DEPEND. One question: Why is "ruby setup.rb config" called twice? I deleted the one in src_install() and added its argument (--prefix=$D/usr) to the one in src_compile() which seems not to make any difference. Both versions, yours (unodified) and mine (the edited one), work (a bit buggy). Why buggy: When typing commands in an *irbsh* buffer and pressing RET, the return values of that ruby command are not displayed directly. It seems that the buffer holding those values is not flushed automatically. I believe that this is probably not a bug in the ebuild but in irbsh and I've written an email to the author. I'll report back what he mentioned.
Thanks for the note, I'll remove the second ruby setup command. With respect to the other problem you described, I notice it too. I tried adding the following to my .irbrc as the installation documents mention, but it didn't seem to make a difference. Keen to hear back what you find from the authors. load "irbsh-lib.rb" if IRB.conf[:PROMPT_MODE] == :INF_RUBY
I've mailed the author (rubikitch@ruby-lang.org) three times int the past two month, but didn't get any reply till now. Maybe his SPAM filter has gone crazy or a net-monster ate my mail... Perhaps anyone else wants to try to contact him?
(In reply to comment #6) > I've mailed the author (rubikitch@ruby-lang.org) three times int the past two > month, but didn't get any reply till now. Any news here?
No, still nothing. In the meantime the official homepage of irbsh (http://www.ruby-lang.org/~rubikitch/computer/irbsh/) has gone offline, too. I think you can close this bug.
As you wish. :)