]> git.eshelyaron.com Git - emacs.git/commitdiff
* cedet/semantic.el (semantic-mode): Parse all existing buffers when
authorChong Yidong <cyd@stupidchicken.com>
Sun, 4 Oct 2009 19:25:26 +0000 (19:25 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 4 Oct 2009 19:25:26 +0000 (19:25 +0000)
enabled.

lisp/ChangeLog
lisp/cedet/semantic.el

index 8edd3764c634674266620f0c0c267dd10549160c..a257addb19a887ce97cceb95bfdadc075440ba79 100644 (file)
@@ -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.
index da557ecd45339fbb0e46c4e0f13ef9a7ece94742..831041e74da80366a5b8ab25a3cdee16b44fbe7d 100644 (file)
@@ -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