 \\{rdebug-locals-mode-map}"
   ; (kill-all-local-variables)
   (interactive "")
+  (kill-all-local-variables)
   (setq major-mode 'rdebug-locals-mode)
   (setq mode-name "RDEBUG Locals")
   (setq buffer-read-only t)

  "Detects breakpoint lines and sets up mouse navigation."
  (with-current-buffer buf
    (let ((inhibit-read-only t))
      (setq mode-name "RDEBUG Breakpoints")
      (goto-char (point-min))
      (while (not (eobp))
        (let ((b (line-beginning-position)) (e (line-end-position)))

                              (buffer-substring b e))
            (add-text-properties b e
                                 (list 'mouse-face 'highlight
                                       'keymap rdebug-breakpoints-mode-map))
            (add-text-properties
             (+ b (match-beginning 1)) (+ b (match-end 1))
             (list 'face font-lock-constant-face
