Ruby -r debug -> "Emacs support available"

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?

Am Sat, 3 Nov 2012 22:06:31 +0900
schrieb “[email protected][email protected]:

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: GNU Emacs - GNU Project

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.

On Nov 3, 2012, at 07:06 , [email protected] 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

Did you look at debug.rb itself? It is one of the joys of ruby.
Very wise words! Thank you—I feel enriched now. :slight_smile: