diff options
| author | Chong Yidong | 2010-02-27 20:22:44 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-02-27 20:22:44 -0500 |
| commit | de3a1fe9358d3d833a15dc4fb559b902cdc1168b (patch) | |
| tree | 2c9238dc843da462a720a64df7a75f5e053d9d42 /lisp/textmodes | |
| parent | 8c3e96d2f0e4fee24498567c5840eb8d03d26720 (diff) | |
| download | emacs-de3a1fe9358d3d833a15dc4fb559b902cdc1168b.tar.gz emacs-de3a1fe9358d3d833a15dc4fb559b902cdc1168b.zip | |
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')
| -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." | |||
| 665 | (if (and (markerp marker) (marker-buffer marker)) | 665 | (if (and (markerp marker) (marker-buffer marker)) |
| 666 | ;; Buffer is still live and we have the marker. | 666 | ;; Buffer is still live and we have the marker. |
| 667 | (progn | 667 | (progn |
| 668 | (save-excursion | 668 | (with-current-buffer (marker-buffer marker) |
| 669 | ;; Goto the buffer and check of section is unchanged | 669 | ;; Goto the buffer and check of section is unchanged |
| 670 | (set-buffer (marker-buffer marker)) | ||
| 671 | (goto-char (marker-position marker)) | 670 | (goto-char (marker-position marker)) |
| 672 | (if (looking-at (regexp-quote literal)) | 671 | (if (looking-at (regexp-quote literal)) |
| 673 | ;; OK, get the makro name | 672 | ;; OK, get the makro name |