]> git.eshelyaron.com Git - emacs.git/commitdiff
(gud-watch): Add "$" prefix when in registers buffer.
authorNick Roberts <nickrob@snap.net.nz>
Tue, 22 Apr 2008 06:25:15 +0000 (06:25 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Tue, 22 Apr 2008 06:25:15 +0000 (06:25 +0000)
lisp/progmodes/gdb-ui.el

index 9c1d2c9762e4874b25c5e5f0f8c654039be8aa4d..9899d55eac3ca9f505f718fe4074f1bbd4cce841 100644 (file)
@@ -751,7 +751,8 @@ With arg, enter name of variable to be watched in the minibuffer."
                                        'gud-gdb-complete-command)
                     (if (and transient-mark-mode mark-active)
                         (buffer-substring (region-beginning) (region-end))
-                      (tooltip-identifier-from-point (point))))))
+                      (concat (if (eq major-mode 'gdb-registers-mode) "$")
+                              (tooltip-identifier-from-point (point)))))))
              (speedbar 1)
                (set-text-properties 0 (length expr) nil expr)
                (gdb-enqueue-input