Commit d436f538 authored by Chong Yidong's avatar Chong Yidong
Browse files

* cedet/semantic.el (semantic-mode): Parse all existing buffers when

enabled.
parent 82481502
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
(semantic-new-buffer-fcn): Call parser setup functions here. (semantic-new-buffer-fcn): Call parser setup functions here.
(semantic-mode): Don't call parser setup functions here, it's done (semantic-mode): Don't call parser setup functions here, it's done
in semantic-new-buffer-fcn now. in semantic-new-buffer-fcn now.
(semantic-mode): Parse all existing buffers when enabled.
* cedet/srecode/compile.el (srecode-compile-file): Call * cedet/srecode/compile.el (srecode-compile-file): Call
semantic-new-buffer-fcn if the buffer has not been parsed. semantic-new-buffer-fcn if the buffer has not been parsed.
......
...@@ -1075,7 +1075,10 @@ Semantic mode. ...@@ -1075,7 +1075,10 @@ Semantic mode.
(file-exists-p semanticdb-default-system-save-directory)) (file-exists-p semanticdb-default-system-save-directory))
(require 'semantic/db-ebrowse) (require 'semantic/db-ebrowse)
(semanticdb-load-ebrowse-caches))) (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. ;; Disable all Semantic features.
(remove-hook 'mode-local-init-hook 'semantic-new-buffer-fcn) (remove-hook 'mode-local-init-hook 'semantic-new-buffer-fcn)
;; FIXME: handle semanticdb-load-ebrowse-caches ;; FIXME: handle semanticdb-load-ebrowse-caches
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment