]> code.delx.au - gnu-emacs/commitdiff
(gud-speedbar-buttons): Use shadow face properly.
authorNick Roberts <nickrob@snap.net.nz>
Thu, 23 Feb 2006 07:40:25 +0000 (07:40 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Thu, 23 Feb 2006 07:40:25 +0000 (07:40 +0000)
lisp/progmodes/gud.el

index ea2586a31d62874755441831e3c6ccc5ebbdb214..5a09d5dd196937877c658e90f09abe2820ca64c4 100644 (file)
@@ -456,7 +456,8 @@ required by the caller."
            (while var-list
              (let* (char (depth 0) (start 0) (var (car var-list))
                          (expr (car var)) (varnum (nth 1 var))
-                         (type (nth 3 var)) (status (nth 5 var)))
+                         (type (nth 3 var)) (value (nth 4 var))
+                         (status (nth 5 var)))
                (put-text-property
                 0 (length expr) 'face font-lock-variable-name-face expr)
                (put-text-property
@@ -470,7 +471,7 @@ required by the caller."
                             (string-match "char \\*$" type)))
                    (speedbar-make-tag-line
                     'bracket ?? nil nil
-                    (concat expr "\t" (nth 4 var))
+                    (concat expr "\t" value)
                     (if (or parent (eq status 'out-of-scope))
                         nil 'gdb-edit-value)
                     nil
@@ -491,14 +492,12 @@ required by the caller."
                      (speedbar-make-tag-line
                       'bracket char
                       'gdb-speedbar-expand-node varnum
-                      (concat expr "\t"
-                              type "\t"
-                              (nth 4 var))
-                      (if (or parent status 'out-of-scope)
+                      (concat expr "\t" type "\t" value)
+                      (if (or parent status)
                         nil 'gdb-edit-value)
                       nil
-                      (if (and (or parent status) gdb-show-changed-values)
-                          'shadow t)
+                      (if (and (or parent (eq status 'out-of-scope))
+                               gdb-show-changed-values) 'shadow t)
                       depth)
                    (speedbar-make-tag-line
                     'bracket char