* cedet/srecode/srt-mode.el (semantic-analyze-possible-completions):
[bpt/emacs.git] / lisp / cedet / semantic / db.el
index cfde30b..4853151 100644 (file)
@@ -552,8 +552,7 @@ The file associated with OBJ does not need to be in a buffer."
         (buff (semanticdb-in-buffer-p obj))
         )
     (if buff
-       (save-excursion
-         (set-buffer buff)
+       (with-current-buffer buff
          ;; Use semantic's magic tracker to determine of the buffer is up
          ;; to date or not.
          (not (semantic-parse-tree-up-to-date-p))