I’m seeing some rather strange behavior when using Inferior-Ruby-Mode in
Emacs (on Windows XP).
It’s a bit difficult to describe what the problem is, but here goes.
Whenever I hit enter my cursor is positioned in the wrong place for the
next prompt. Instead of being positioned just to the right of the ‘>’,
it is positioned one line below and slightly to the right of where it
I’m not sure how this will display for everyone, but here is an example
of what I’m seeing if I hit :test[ENTER]:test2[ENTER]:test3[ENTER]
[cursor goes here]
As you can see, I’m also seeing another issue of evaluations echoing
twice instead of just once.
Does anyone have any tricks for getting this to work nicely?
I’ve not changed the default (seemingly) relevant variables in
(defvar ruby-program-name “irb --inf-ruby-mode”
“*Program invoked by the run-ruby command”)
(defvar inferior-ruby-first-prompt-pattern “^irb(.*)[0-9:]+0> *”
“first prompt regex pattern of ruby interpreter.”)
(defvar inferior-ruby-prompt-pattern “^\(irb(.)[0-9:]+[>”’] *\)+"
“prompt regex pattern of ruby interpreter.”)
and my enter key is bound to the default comint-send-input command.
Any help would be appreciated, (including a referall to a more
emacs-focused list if necessary).