aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/replace.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index bd9ba1dbe96..df58492f871 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -344,6 +344,7 @@ It serves as a menu to find any of the occurrences in this buffer.
344 list-matching-lines-default-context-lines)) 344 list-matching-lines-default-context-lines))
345 (let ((first t) 345 (let ((first t)
346 (buffer (current-buffer)) 346 (buffer (current-buffer))
347 (dir default-directory)
347 (linenum 1) 348 (linenum 1)
348 (prevpos (point-min)) 349 (prevpos (point-min))
349 (final-context-start (make-marker))) 350 (final-context-start (make-marker)))
@@ -354,6 +355,7 @@ It serves as a menu to find any of the occurrences in this buffer.
354 (with-output-to-temp-buffer "*Occur*" 355 (with-output-to-temp-buffer "*Occur*"
355 (save-excursion 356 (save-excursion
356 (set-buffer standard-output) 357 (set-buffer standard-output)
358 (setq default-directory dir)
357 ;; We will insert the number of lines, and "lines", later. 359 ;; We will insert the number of lines, and "lines", later.
358 (insert " matching ") 360 (insert " matching ")
359 (let ((print-escape-newlines t)) 361 (let ((print-escape-newlines t))