summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/db-file.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet/semantic/db-file.el')
-rw-r--r--lisp/cedet/semantic/db-file.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/cedet/semantic/db-file.el b/lisp/cedet/semantic/db-file.el
index 4bd042ecefe..ec8ffdccb28 100644
--- a/lisp/cedet/semantic/db-file.el
+++ b/lisp/cedet/semantic/db-file.el
@@ -281,8 +281,7 @@ Restore the overlays after writting.
Argument OBJ is the object to write."
(when (semanticdb-live-p obj)
(when (semanticdb-in-buffer-p obj)
- (save-excursion
- (set-buffer (semanticdb-in-buffer-p obj))
+ (with-current-buffer (semanticdb-in-buffer-p obj)
;; Make sure all our tag lists are up to date.
(semantic-fetch-tags)