Forum: Ruby ruby -r debug -> "Emacs support available"

Posted by listgj-ruby@yahoo.co.uk (Guest)
on 2012-11-03 14:06
(Received via mailing list)
Forgive my ignorance, but what does that "Emacs support available" 
message mean? I can't find anything about it anywhere (possibly because 
the search terms are so common). What kind of support?
Posted by Marvin Gülker (quintus)
on 2012-11-03 21:18
Attachment: signature.asc (489 Bytes)
(Received via mailing list)
Am Sat, 3 Nov 2012 22:06:31 +0900
schrieb "listgj-ruby@yahoo.co.uk" <listgj-ruby@yahoo.co.uk>:

> Forgive my ignorance, but what does that "Emacs support available"
> message mean? I can't find anything about it anywhere (possibly
> because the search terms are so common). What kind of support?

Emacs is a code editor[1] that can also run from the commandline. See
here: http://www.gnu.org/software/emacs/

I guess the "debug" library allows you to jump directly into the code
with emacs.

Although I’m a happy Emacs user, I’d be curious if "debug" really only
supports Emacs as an editor; I can’t imagine it doesn’t support the
other big console editor, VIM.

Valete,
Marvin

[1] Actually, Emacs is much more than an editor. But this is unrelated
here.
Posted by Ryan Davis (Guest)
on 2012-11-03 21:38
(Received via mailing list)
On Nov 3, 2012, at 07:06 , listgj-ruby@yahoo.co.uk wrote:

> Forgive my ignorance, but what does that "Emacs support available" message mean? 
I can't find anything about it anywhere (possibly because the search terms are so 
common). What kind of support?

Did you look at debug.rb itself? It is one of the joys of ruby. Check 
it:

      if ENV['EMACS']
        stdout.printf "\032\032%s:%d:\n", binding_file, binding_line
      else
        stdout.printf "%s:%d:%s", binding_file, binding_line,
          line_at(binding_file, binding_line)
      end
Posted by Arlen Cuss (Guest)
on 2012-11-05 23:46
(Received via mailing list)
> Did you look at debug.rb itself? It is one of the joys of ruby.
Very wise words!  Thank you—I feel enriched now. :)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.