From: Nick Roberts Date: Tue, 22 Apr 2008 06:25:15 +0000 (+0000) Subject: (gud-watch): Add "$" prefix when in registers buffer. X-Git-Tag: emacs-pretest-23.0.90~6139 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=01a369030e39cc7af7fe38d69450a4233f9bd45e;p=emacs.git (gud-watch): Add "$" prefix when in registers buffer. --- 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