* textmodes/two-column.el (2C-split):
[bpt/emacs.git] / lisp / emacs-lisp / re-builder.el
index 31f7d8d..4b64f7a 100644 (file)
@@ -658,8 +658,7 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions."
         (matches 0)
         (submatches 0)
         firstmatch)
-    (save-excursion
-      (set-buffer reb-target-buffer)
+    (with-current-buffer reb-target-buffer
       (reb-delete-overlays)
       (goto-char (point-min))
       (while (and (not (eobp))