   "Keymap to navigate rdebug stack frames.")
 
 (defun rdebug-frames-mode ()
-  "Major mode for rdebug frames.
+ "Major mode for displaying the stack trace in the `rdebug' Ruby debugger.
 
 \\{rdebug-frames-mode-map}"
   (interactive "")


;; Remember, all menu items are added in the reverse order!

;; TODO: This is a mix of commands that apply to dedicated buffers,
;; the source buffers and the debugger shell buffer. Things like
;; "delete breakpoint" can be in source and the breakpoints window,
;; but not in the others.

(defun rdebug-populate-debugger-menu (map)
  "Populate the Rdebug 'Debugger' menu."
  (let ((menu (make-sparse-keymap)))

    (with-current-buffer buf
      (let ((inhibit-read-only t)
            ;; position in stack buffer of selected frame
            (current-frame-point nil))
        (rdebug-frames-mode)
        (set (make-local-variable 'gud-comint-buffer) comint-buffer)
        (goto-char (point-min))
