From: Josh Schairbaum Date: 2008-06-05T08:17:07+09:00 Subject: Re: changed command order in inf-ruby.el --Apple-Mail-3-238523164 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit It's not completely dedicated to Ruby and Emacs, but it mostly is. There is a group of us who meet in Columbus, OH about once a month to share Emacs tips, and we all happen to be Rubyists of varying degrees of skill. http://groups.google.com/group/emacs-unite Regards, Josh On Jun 4, 2008, at 2:10 PM, Eric Schulte wrote: > Hi, > > When I generate errors in a *ruby* process buffer (in emacs using > inf-ruby.el) the links to files aren't processed correctly because the > variable `compilation-error-regexp-alist' is not set in time. Just > changing the order of commands in `inferior-ruby-mode' in inf-ruby.el > fixed this for me. If this error is particular to my setup then I > apologize (but I don't see why that would be the case). > > patch is attached. > > Also, does anyone know of a dedicated ruby/emacs mailing list? > > Thanks, > Eric > > Index: inf-ruby.el > =================================================================== > --- inf-ruby.el (revision 16821) > +++ inf-ruby.el (working copy) > @@ -220,9 +220,9 @@ > (use-local-map inferior-ruby-mode-map) > (setq comint-input-filter (function ruby-input-filter)) > (setq comint-get-old-input (function ruby-get-old-input)) > - (compilation-shell-minor-mode t) > (make-local-variable 'compilation-error-regexp-alist) > (setq compilation-error-regexp-alist inferior-ruby-error-regexp- > alist) > + (compilation-shell-minor-mode t) > (run-hooks 'inferior-ruby-mode-hook)) > > (defvar inferior-ruby-filter-regexp "\\`\\s *\\S ?\\S ?\\s *\\'" --Apple-Mail-3-238523164 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable It's not completely dedicated = to Ruby and Emacs, but it mostly is.  There is a group of us who = meet in Columbus, OH about once a month to share Emacs tips, and we all = happen to be Rubyists of varying degrees of = skill.

http://groups.google.c= om/group/emacs-unite

Regards,
Josh

On Jun 4, = 2008, at 2:10 PM, Eric Schulte wrote:

Hi,

When I generate errors in a *ruby* process = buffer (in emacs using
inf-ruby.el) the links to files aren't = processed correctly because the
variable = `compilation-error-regexp-alist' is not set in time. =  Just
changing the order of commands in `inferior-ruby-mode' in = inf-ruby.el
fixed this for me.  If this error is particular to = my setup then I
apologize (but I don't see why that would be the = case).

patch is attached.

Also, does anyone know of a = dedicated ruby/emacs mailing list?

Thanks,
Eric

Index: = inf-ruby.el
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- = inf-ruby.el = (revision 16821)
+++ inf-ruby.el (working copy)
@@ -220,9 = +220,9 @@
  (use-local-map inferior-ruby-mode-map)
=   (setq comint-input-filter (function ruby-input-filter))
=   (setq comint-get-old-input (function = ruby-get-old-input))
-  (compilation-shell-minor-mode t)
=   (make-local-variable 'compilation-error-regexp-alist)
=   (setq compilation-error-regexp-alist = inferior-ruby-error-regexp-alist)
+ =  (compilation-shell-minor-mode t)
  (run-hooks = 'inferior-ruby-mode-hook))

(defvar inferior-ruby-filter-regexp = "\\`\\s *\\S ?\\S ?\\s = *\\'"

= --Apple-Mail-3-238523164--