]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/cedet/semantic.el (semantic--set-buffer-cache): Ensure that
authorChong Yidong <cyd@stupidchicken.com>
Sat, 5 Sep 2009 20:32:50 +0000 (20:32 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 5 Sep 2009 20:32:50 +0000 (20:32 +0000)
semantic-bovinate-nonterminal-check-obarray is buffer-local.

lisp/cedet/semantic.el

index 43d90df69917fe2d6a8845a63a762444272a4562..ad80df3845923cca603139b7c95c09a25e201d09 100644 (file)
@@ -498,9 +498,10 @@ is requested."
 (defun semantic--set-buffer-cache (tagtable)
   "Set the toplevel cache cache to TAGTABLE."
   (setq semantic--buffer-cache tagtable
-        semantic-unmatched-syntax-cache-check nil
-       ;; This is specific to the bovine parser.
-        semantic-bovinate-nonterminal-check-obarray nil)
+        semantic-unmatched-syntax-cache-check nil)
+  ;; This is specific to the bovine parser.
+  (set (make-local-variable 'semantic-bovinate-nonterminal-check-obarray)
+       nil)
   (semantic-parse-tree-set-up-to-date)
   (semantic-make-local-hook 'after-change-functions)
   (add-hook 'after-change-functions 'semantic-change-function nil t)