From d4bc9efd83527ce44804817ac0b36b458d005593 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Tue, 5 Sep 2006 03:40:54 +0000 Subject: [PATCH] (gud-speedbar-buttons): Allow for no type e.g public, protected in C++. --- lisp/progmodes/gud.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 84b40e8ba80..b42e1b7fdc7 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -456,8 +456,8 @@ required by the caller." (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 -- 2.39.2