Emacs extension?


#1

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 methodin_list?’ for
0:Fixnum (NoMethodError)
from ./pdfobjects.rb:133:in to_pdf' from ./pdfobjects.rb:48:indictionary_writer’
from ./pdfobjects.rb:39:in dictionary_writer' from ./pdfobjects.rb:214:into_pdf’
from ./pdflib.rb:112:in to_s' from //opt/ruby/1.8.4/lib/ruby/1.8/delegate.rb:293:ineach_with_index’
from ./pdflib.rb:108:in to_s' from -:68:inwrite_pdf’
from -:75

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

Patrick


#2

There are some solutions here:

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

Steve


#3

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