 as gud-mode does for debugging C programs with gdb."
   :type 'boolean
   :group 'rdebug)
-(make-variable-buffer-local 'rdebug-rdebugtrack-do-tracking-p)
-
-(defcustom rdebug-many-windows t
-  "*If non-nil, display secondary rdebug windows, in a layout similar to `gdba'.
-However only set to the multi-window display if the rdebug
-command invocation has an annotate options (\"--annotate 3\"."
-  :type 'boolean
-  :group 'rdebug)
-
-(defcustom rdebug-rdebugtrack-minor-mode-string " RDEBUG"
+(make-variable-buffer-local 'rdebugtrack-do-tracking-p)
+
+(defcustom rdebugtrack-minor-mode-string " rdebug"
   "*String to use in the minor mode list when rdebugtrack is enabled."
   :type 'string
   :group 'rdebug)

  "\n")

;; rdebugtrack constants
(defconst rdebug-rdebugtrack-stack-entry-regexp
      "^(\\([-a-zA-Z0-9_/.]*\\):\\([0-9]+\\)):[ \t]?\\(.*\n\\)"
  "Regular expression rdebugtrack uses to find a stack trace entry.")

(defconst rdebug-rdebugtrack-input-prompt "\n(+rdb:\\([0-9]+\\|post-mortem\\))+ *"
  "Regular expression rdebugtrack uses to recognize a rdebug prompt.")

(defconst rdebug-rdebugtrack-track-range 10000
  "Max number of characters from end of buffer to search for stack entry.")

(defun gud-rdebug-massage-args (file args)

  "^[ \t]+[[]?\\([^:]+\\):\\([0-9]+\\):in `.*'"
  "Regular expression that describes a Ruby traceback line from $! list.")

(defun rdebugtrack-overlay-arrow (activation)
  "Activate or de arrow at beginning-of-line in current buffer."
  ;; This was derived/simplified from edebug-overlay-arrow
  (cond (activation
	 (setq overlay-arrow-position (make-marker))
	 (setq overlay-arrow-string "=>")
	 (set-marker overlay-arrow-position (point) (current-buffer))
	 (setq rdebugtrack-is-tracking-p t))
	(rdebugtrack-is-tracking-p
	 (setq overlay-arrow-position nil)
	 (setq rdebugtrack-is-tracking-p nil))
	))

(defun rdebugtrack-track-stack-file (text)
  "Show the file indicated by the rdebug stack entry line, in a separate window.
Activity is disabled if the buffer-local variable
`rdebugtrack-do-tracking-p' is nil.

We depend on the rdebug input prompt matching `rdebugtrack-input-prompt'
at the beginning of the line.
" 
  ;; Instead of trying to piece things together from partial text
