diff options
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 6f7d536d6c6..0a50555d37d 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el @@ -708,8 +708,7 @@ DELTA and PRO-OR-DE are assumed to be dynamically scoped into this function." (name (nth 1 x)) (newname (nth 2 x)) (marker (nth 4 data))) - (save-excursion - (set-buffer (marker-buffer marker)) + (with-current-buffer (marker-buffer marker) (goto-char (marker-position marker)) (if (looking-at (concat "\\([ \t]*\\\\\\)" (regexp-quote name))) (replace-match (concat "\\1" newname)) |