changeset 72650:eea30f9dbecd

(gud-speedbar-buttons): Allow for no type e.g public, protected in C++.
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 05 Sep 2006 03:40:54 +0000
parents ea0f13c83847
children 172b33b2d7a8
files lisp/progmodes/gud.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gud.el	Tue Sep 05 03:39:19 2006 +0000
+++ b/lisp/progmodes/gud.el	Tue Sep 05 03:40:54 2006 +0000
@@ -456,8 +456,8 @@
 	  (while var-list
 	    (let* (char (depth 0) (start 0) (var (car var-list))
 			(varnum (car var)) (expr (nth 1 var))
-			(type (nth 3 var)) (value (nth 4 var))
-			(status (nth 5 var)))
+			(type (if (nth 3 var) (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