]> code.delx.au - gnu-emacs/commitdiff
(gud-speedbar-buttons): Allow pointers to
authorNick Roberts <nickrob@snap.net.nz>
Tue, 7 Mar 2006 10:43:19 +0000 (10:43 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Tue, 7 Mar 2006 10:43:19 +0000 (10:43 +0000)
be edited and use font-lock-warning-face for any changes.

lisp/progmodes/gud.el

index b06d95e6b99ab9b9d42cbf574c73cd80c5e4a92d..41bb24f9e61b8b3b417f484aaa1a54804a5887fb 100644 (file)
@@ -493,11 +493,15 @@ required by the caller."
                       'bracket char
                       'gdb-speedbar-expand-node varnum
                       (concat expr "\t" type "\t" value)
-                      (if (or parent status)
+                      (if (or parent (eq status 'out-of-scope))
                         nil 'gdb-edit-value)
                       nil
-                      (if (and (or parent (eq status 'out-of-scope))
-                               gdb-show-changed-values) 'shadow t)
+                      (if gdb-show-changed-values
+                          (or parent (case status
+                                           (changed 'font-lock-warning-face)
+                                           (out-of-scope 'shadow)
+                                           (t t)))
+                        t)
                       depth)
                    (speedbar-make-tag-line
                     'bracket char