From 01a369030e39cc7af7fe38d69450a4233f9bd45e Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Tue, 22 Apr 2008 06:25:15 +0000 Subject: [PATCH] (gud-watch): Add "$" prefix when in registers buffer. --- lisp/progmodes/gdb-ui.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 9c1d2c9762e..9899d55eac3 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -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 -- 2.39.5