Issue #6742 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee set to nobu (Nobuyoshi Nakada)

Nobu, please check this.

-- 
Yusuke Endoh <mame / tsg.ne.jp>
----------------------------------------
Bug #6742: Emacs compilation-shell-minor-mode misconfiguration
https://bugs.ruby-lang.org/issues/6742#change-32265

Author: j2petkov (Jean-Christophe Petkovich)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: misc
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


In the definition of inferior-ruby-mode, compilation-shell-minor-mode is enabled before it's variables are set. The way compilation shell is written, this will cause very strange highlighting in the inferior buffer, and inconsistent and useless behaviour of next-error. A simple fix is to put the enable after the setting of those variables. After that, next-error should take you to the file/linenumber of errors listed in the inferior buffer!

Patch which fixes the issue on my box is included.




-- 
http://bugs.ruby-lang.org/