From: Rocky Bernstein Date: 2007-11-26T09:24:27+09:00 Subject: Re: Update: rdebug / emacs / gud My apologies for not seeing this sooner. It has come to my attention that there is a rdebug.el distributed with Ruby 1.8.6. Independently I had been writing/revising my own rdebug.el. and it's now in ruby-debug's SVN in the emacs directory. Had I known there was another rdebug.el around, I think I would have tried to avoid that confusion. The rdebug.el in SVN a bit more filled out. It probably can be used with 0.9.3 (since I started writing it in that release). But it really should be used with the ruby-debug that is in SVN since rdebug now supports gdb-style annotations. Also the rdebug.el in SVN probably should be used with Emacs 23. (It might however work in Emacs 22). I'll write to the author of the other rdebug.el to see what we can do. Perhaps this can be used to support older Emacs versions. As for getting this cleared up so in Ruby 1.8.7, I'm kind of new to this and would appreciate suggestions. At a minimum I will post a tracker ticket. My apologies for the confusion. Jim Weirich wrote: > Alex Shulgin wrote: >> May be you are missing the very ruby-elisp files or you have some >> version conflict (*.el files vs. ruby or *.el files vs Emacs). :-) > > Found the problem: The regexp used to filter the output of rdebug to > determine the source code line was not correct. > > Original Version: "\\([^:\n]*\\):\\([0-9]+\\):.*\n" > > Fixed Version: "^Z^Z\\([^:\n]*\\):\\([0-9]+\\).*\n" > > (yes, the first two character of the regexp are control-Z) > > That fixed it for me. I added the control z's and removing the second > colon and now everything is working fine. This leads me to suspect that > the ruby-debug gem and the rdebug.el emacs file are out of sync. > > My ruby-debug gem is version 0.9.3. There are no version markings in > the rdebug.el file. > > -- Jim Weirich -- Posted via http://www.ruby-forum.com/.