diff lisp/calc/calcalg2.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 1d1d5d9bd884
children c62e42a9ebc4 376148b31b5e
line wrap: on
line diff
--- a/lisp/calc/calcalg2.el	Sat Feb 27 20:11:15 2010 -0500
+++ b/lisp/calc/calcalg2.el	Sat Feb 27 20:22:44 2010 -0500
@@ -670,8 +670,8 @@
 (defmacro math-tracing-integral (&rest parts)
   (list 'and
 	'trace-buffer
-	(list 'save-excursion
-	      '(set-buffer trace-buffer)
+	(list 'with-current-buffer
+	      'trace-buffer
 	      '(goto-char (point-max))
 	      (list 'and
 		    '(bolp)