Forum: Ruby Emacs extension?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
65f96548f9b800dd4e05cb075773904d?d=identicon&s=25 Patrick G. (pgundlach)
on 2006-06-13 15:23
Hello Rubyists,

I code ruby within emacs and I sometimes run scripts within emacs by
running

   (shell-command-on-region (point-min) (point-max) "ruby -w")

When the script throws errors, emacs outputs lines like these in a
buffer called "*Shell Command Output*:

 ./pdfobjects.rb:134:in `to_pdf': undefined method `in_list?' for
0:Fixnum (NoMethodError)
	from ./pdfobjects.rb:133:in `to_pdf'
	from ./pdfobjects.rb:48:in `dictionary_writer'
	from ./pdfobjects.rb:39:in `dictionary_writer'
	from ./pdfobjects.rb:214:in `to_pdf'
	from ./pdflib.rb:112:in `to_s'
	from //opt/ruby/1.8.4/lib/ruby/1.8/delegate.rb:293:in `each_with_index'
	from ./pdflib.rb:108:in `to_s'
	from -:68:in `write_pdf'
	from -:75

Did anybody write an extension so these linenumbers are active? That
would ease finding the right places.

Patrick
Molitor, Stephen L (Guest)
on 2006-06-13 16:50
(Received via mailing list)
There are some solutions here:

http://wiki.rubygarden.org/Ruby/page/show/EmacsExtensions

Steve
65f96548f9b800dd4e05cb075773904d?d=identicon&s=25 Patrick G. (pgundlach)
on 2006-06-13 20:28
Molitor, Stephen L wrote:

> There are some solutions here:
>
> http://wiki.rubygarden.org/Ruby/page/show/EmacsExtensions

Oh great, thanks for the pointer. Exactly what I was looking for.

Regards,

Patrick
This topic is locked and can not be replied to.