diff options
| author | Richard M. Stallman | 1995-03-21 19:57:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-03-21 19:57:36 +0000 |
| commit | bdd610b25ed4cbef2f214bf277efc4299a04153d (patch) | |
| tree | f535809c1205d1422b736ec43d9d23c24435a60b /lisp/replace.el | |
| parent | f1913a26cb6d1aab314e6f1fb91b191141c1c806 (diff) | |
| download | emacs-bdd610b25ed4cbef2f214bf277efc4299a04153d.tar.gz emacs-bdd610b25ed4cbef2f214bf277efc4299a04153d.zip | |
(occur): Copy default-directory to *Occur* buffer.
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 2 |
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)) |