mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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.
This commit is contained in:
parent
8c3e96d2f0
commit
de3a1fe935
7 changed files with 15 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue