From 59aec83e8f0860e857ad00de8f780f83ce2d05a1 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 7 Sep 2009 01:31:06 +0000 Subject: [PATCH] lisp/cedet/semantic.el (semantic-fetch-tags): Check if progress reporter is in use before calling it. --- lisp/cedet/semantic.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index 97780453058..c683cf84837 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el @@ -594,7 +594,8 @@ was marked unparseable, then do nothing, and return the cache." (semantic-parser-working-message (buffer-name)) 0 100)))) (setq res (semantic-parse-region (point-min) (point-max))) - (progress-reporter-done semantic--progress-reporter)) + (if semantic--progress-reporter + (progress-reporter-done semantic--progress-reporter))) ;; Clear the caches when we see there were no errors. ;; But preserve the unmatched syntax cache and warnings! -- 2.39.5