Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d436f538
Commit
d436f538
authored
Oct 04, 2009
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cedet/semantic.el (semantic-mode): Parse all existing buffers when
enabled.
parent
82481502
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/cedet/semantic.el
lisp/cedet/semantic.el
+4
-1
No files found.
lisp/ChangeLog
View file @
d436f538
...
...
@@ -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.
...
...
lisp/cedet/semantic.el
View file @
d436f538
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment