summaryrefslogtreecommitdiff
path: root/lisp/find-dired.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/find-dired.el')
-rw-r--r--lisp/find-dired.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index 2e0515bb469..98643f71777 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -291,8 +291,7 @@ Thus ARG can also contain additional grep options."
(let ((buf (process-buffer proc))
(inhibit-read-only t))
(if (buffer-name buf)
- (save-excursion
- (set-buffer buf)
+ (with-current-buffer buf
(let ((buffer-read-only nil))
(save-excursion
(goto-char (point-max))