# Emacs extension?

**URL:** <https://www.ruby-forum.com/t/emacs-extension/63243>\
**Category:** Ruby\
**Created:** [June 13, 2006, 3:23pm UTC](https://www.ruby-forum.com/t/emacs-extension/63243 "2006-06-13T15:23:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgundlach](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pgundlach](https://www.ruby-forum.com/u/pgundlach)\
**Post date:** [June 13, 2006, 3:23pm UTC](https://www.ruby-forum.com/t/emacs-extension/63243/1 "2006-06-13T15:23:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pgundlach](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pgundlach](https://www.ruby-forum.com/u/pgundlach)\
**Post date:** [June 13, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/emacs-extension/63243/2 "2006-06-13T16:50:17Z")

</div>

There are some solutions here:

[http://wiki.rubygarden.org/Ruby/page/show/EmacsExtensions](http://wiki.rubygarden.org/Ruby/page/show/EmacsExtensions)

Steve

---

<div class="post-metadata">

**Author:** ![pgundlach](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pgundlach](https://www.ruby-forum.com/u/pgundlach)\
**Post date:** [June 13, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/emacs-extension/63243/3 "2006-06-13T20:28:18Z")

</div>

Molitor, Stephen L wrote:

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

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

Regards,

Patrick
