summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/db-debug.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet/semantic/db-debug.el')
-rw-r--r--lisp/cedet/semantic/db-debug.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/cedet/semantic/db-debug.el b/lisp/cedet/semantic/db-debug.el
index 619dd601186..40b311ca285 100644
--- a/lisp/cedet/semantic/db-debug.el
+++ b/lisp/cedet/semantic/db-debug.el
@@ -88,8 +88,7 @@
(let* ((full-filename (semanticdb-full-filename table))
(buff (find-buffer-visiting full-filename)))
(if buff
- (save-excursion
- (set-buffer buff)
+ (with-current-buffer buff
(semantic-sanity-check))
;; We can't use the usual semantic validity check, so hack our own.
(semanticdb-table-oob-sanity-check (semanticdb-get-tags table)))))