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