comparison lisp/cedet/semantic/db-find.el @ 107252:2da9673fc448

Fix more save-excursion warnings. * textmodes/reftex-toc.el (reftex-toc-promote-prepare): * emacs-lisp/elint.el (elint-add-required-env): * cedet/semantic/db-find.el (semanticdb-find-translate-path-brutish-default): * cedet/ede/make.el (ede-make-check-version): * calendar/icalendar.el (icalendar--add-diary-entry): * calc/calcalg2.el (math-tracing-integral): Use with-current-buffer instead of save-excursion.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 27 Feb 2010 20:22:44 -0500
parents 181539c8b6a4
children 14f1ff916f19
comparison
equal deleted inserted replaced
107251:a383e724a57c 107252:2da9673fc448
324 Default action as described in `semanticdb-find-translate-path'." 324 Default action as described in `semanticdb-find-translate-path'."
325 (let ((basedb 325 (let ((basedb
326 (cond ((null path) semanticdb-current-database) 326 (cond ((null path) semanticdb-current-database)
327 ((semanticdb-table-p path) (oref path parent-db)) 327 ((semanticdb-table-p path) (oref path parent-db))
328 (t (let ((tt (semantic-something-to-tag-table path))) 328 (t (let ((tt (semantic-something-to-tag-table path)))
329 (save-excursion 329 ;; @todo - What does this DO ??!?!
330 ;; @todo - What does this DO ??!?! 330 (with-current-buffer (semantic-tag-buffer (car tt))
331 (set-buffer (semantic-tag-buffer (car tt)))
332 semanticdb-current-database)))))) 331 semanticdb-current-database))))))
333 (apply 332 (apply
334 #'nconc 333 #'nconc
335 (mapcar 334 (mapcar
336 (lambda (db) 335 (lambda (db)