diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2010-02-27 20:22:44 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-02-27 20:22:44 -0500 |
commit | de3a1fe9358d3d833a15dc4fb559b902cdc1168b (patch) | |
tree | 2c9238dc843da462a720a64df7a75f5e053d9d42 /lisp/textmodes/reftex-toc.el | |
parent | 8c3e96d2f0e4fee24498567c5840eb8d03d26720 (diff) | |
download | emacs-de3a1fe9358d3d833a15dc4fb559b902cdc1168b.tar.gz |
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.
Diffstat (limited to 'lisp/textmodes/reftex-toc.el')
-rw-r--r-- | lisp/textmodes/reftex-toc.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el index 1066066462d..ae1690416b9 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el @@ -665,9 +665,8 @@ promotion/demotion later." (if (and (markerp marker) (marker-buffer marker)) ;; Buffer is still live and we have the marker. (progn - (save-excursion + (with-current-buffer (marker-buffer marker) ;; Goto the buffer and check of section is unchanged - (set-buffer (marker-buffer marker)) (goto-char (marker-position marker)) (if (looking-at (regexp-quote literal)) ;; OK, get the makro name |