aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-09-20 13:21:28 -0400
committerGlenn Morris2013-09-20 13:21:28 -0400
commit1e835c22e8ec9e387b4275196103d4d6d0617899 (patch)
treebf89aaff52509929a8f034ae89e20da402adbfab
parent525540c0631481f7613bb936db7cc99793f522fd (diff)
downloademacs-1e835c22e8ec9e387b4275196103d4d6d0617899.tar.gz
emacs-1e835c22e8ec9e387b4275196103d4d6d0617899.zip
* lisp/cedet/semantic.el (semantic-new-buffer-fcn-was-run, semantic-active-p):
Move from here... * lisp/cedet/semantic/fw.el: ...to here.
-rw-r--r--lisp/cedet/ChangeLog6
-rw-r--r--lisp/cedet/semantic.el8
-rw-r--r--lisp/cedet/semantic/fw.el9
3 files changed, 15 insertions, 8 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index 61d79b16cb0..ed3301510f0 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,9 @@
12013-09-20 Glenn Morris <rgm@gnu.org>
2
3 * semantic.el (semantic-new-buffer-fcn-was-run, semantic-active-p):
4 Move from here...
5 * semantic/fw.el: ...to here.
6
12013-09-18 Glenn Morris <rgm@gnu.org> 72013-09-18 Glenn Morris <rgm@gnu.org>
2 8
3 * semantic/find.el (semantic-brute-find-first-tag-by-name): 9 * semantic/find.el (semantic-brute-find-first-tag-by-name):
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index 909902a71fe..2d62d848625 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -311,14 +311,6 @@ a parse of the buffer.")
311(semantic-varalias-obsolete 'semantic-init-db-hooks 311(semantic-varalias-obsolete 'semantic-init-db-hooks
312 'semantic-init-db-hook "23.2") 312 'semantic-init-db-hook "23.2")
313 313
314(defvar semantic-new-buffer-fcn-was-run nil
315 "Non-nil after `semantic-new-buffer-fcn' has been executed.")
316(make-variable-buffer-local 'semantic-new-buffer-fcn-was-run)
317
318(defsubst semantic-active-p ()
319 "Return non-nil if the current buffer was set up for parsing."
320 semantic-new-buffer-fcn-was-run)
321
322(defsubst semantic-error-if-unparsed () 314(defsubst semantic-error-if-unparsed ()
323 "Raise an error if current buffer was not parsed by Semantic." 315 "Raise an error if current buffer was not parsed by Semantic."
324 (unless semantic-new-buffer-fcn-was-run 316 (unless semantic-new-buffer-fcn-was-run
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index 7850e0462b2..825cdc9f0a4 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -321,6 +321,15 @@ Avoid using a large BODY since it is duplicated."
321 321
322;;; Misc utilities 322;;; Misc utilities
323;; 323;;
324
325(defvar semantic-new-buffer-fcn-was-run nil
326 "Non-nil after `semantic-new-buffer-fcn' has been executed.")
327(make-variable-buffer-local 'semantic-new-buffer-fcn-was-run)
328
329(defsubst semantic-active-p ()
330 "Return non-nil if the current buffer was set up for parsing."
331 semantic-new-buffer-fcn-was-run)
332
324(defsubst semantic-map-buffers (function) 333(defsubst semantic-map-buffers (function)
325 "Run FUNCTION for each Semantic enabled buffer found. 334 "Run FUNCTION for each Semantic enabled buffer found.
326FUNCTION does not have arguments. When FUNCTION is entered 335FUNCTION does not have arguments. When FUNCTION is entered