summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2009-10-04 19:25:26 +0000
committerChong Yidong <cyd@stupidchicken.com>2009-10-04 19:25:26 +0000
commitd436f538ab9793888d43ed7a0520d233c628df0c (patch)
tree41f50d5ee305584cc23d9ef28d9f7b65c3e9e86a
parent82481502da71772099ee46e36389b029d575d742 (diff)
downloademacs-d436f538ab9793888d43ed7a0520d233c628df0c.tar.gz
* cedet/semantic.el (semantic-mode): Parse all existing buffers when
enabled.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/cedet/semantic.el5
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8edd3764c63..a257addb19a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -5,6 +5,7 @@
(semantic-new-buffer-fcn): Call parser setup functions here.
(semantic-mode): Don't call parser setup functions here, it's done
in semantic-new-buffer-fcn now.
+ (semantic-mode): Parse all existing buffers when enabled.
* cedet/srecode/compile.el (srecode-compile-file): Call
semantic-new-buffer-fcn if the buffer has not been parsed.
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index da557ecd453..831041e74da 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -1075,7 +1075,10 @@ Semantic mode.
(file-exists-p semanticdb-default-system-save-directory))
(require 'semantic/db-ebrowse)
(semanticdb-load-ebrowse-caches)))
- (add-hook 'mode-local-init-hook 'semantic-new-buffer-fcn))
+ (add-hook 'mode-local-init-hook 'semantic-new-buffer-fcn)
+ (dolist (b (buffer-list))
+ (with-current-buffer b
+ (semantic-new-buffer-fcn))))
;; Disable all Semantic features.
(remove-hook 'mode-local-init-hook 'semantic-new-buffer-fcn)
;; FIXME: handle semanticdb-load-ebrowse-caches