diff options
| author | Jim Blandy | 1991-07-13 06:29:10 +0000 |
|---|---|---|
| committer | Jim Blandy | 1991-07-13 06:29:10 +0000 |
| commit | 79c2e52b7ccedfffd4138bddb03e25e8c5272595 (patch) | |
| tree | 3bfb9d28883b28d0b53806312fc5c875c9febef8 | |
| parent | a6e3fa71a42d4305f69186e20a9d46fbbb177a1e (diff) | |
| download | emacs-79c2e52b7ccedfffd4138bddb03e25e8c5272595.tar.gz emacs-79c2e52b7ccedfffd4138bddb03e25e8c5272595.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/replace.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index f5895e1d89d..e8e81bff333 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -257,7 +257,8 @@ It serves as a menu to find any of the occurrences in this buffer. | |||
| 257 | (let ((first t) | 257 | (let ((first t) |
| 258 | (buffer (current-buffer)) | 258 | (buffer (current-buffer)) |
| 259 | (linenum 1) | 259 | (linenum 1) |
| 260 | (prevpos (point-min))) | 260 | (prevpos (point-min)) |
| 261 | (final-context-start (make-marker))) | ||
| 261 | (if (not occur-whole-buffer) | 262 | (if (not occur-whole-buffer) |
| 262 | (save-excursion | 263 | (save-excursion |
| 263 | (beginning-of-line) | 264 | (beginning-of-line) |
| @@ -300,6 +301,8 @@ It serves as a menu to find any of the occurrences in this buffer. | |||
| 300 | (empty (make-string (length tag) ?\ )) | 301 | (empty (make-string (length tag) ?\ )) |
| 301 | tem) | 302 | tem) |
| 302 | (save-excursion | 303 | (save-excursion |
| 304 | (setq tem (make-marker)) | ||
| 305 | (set-marker tem (point)) | ||
| 303 | (set-buffer standard-output) | 306 | (set-buffer standard-output) |
| 304 | (setq occur-pos-list (cons tem occur-pos-list)) | 307 | (setq occur-pos-list (cons tem occur-pos-list)) |
| 305 | (or first (zerop nlines) | 308 | (or first (zerop nlines) |
| @@ -312,8 +315,7 @@ It serves as a menu to find any of the occurrences in this buffer. | |||
| 312 | (insert empty ?:) | 315 | (insert empty ?:) |
| 313 | (forward-line 1) | 316 | (forward-line 1) |
| 314 | (setq tem (1- tem))) | 317 | (setq tem (1- tem))) |
| 315 | (let ((final-context-start (make-marker)) | 318 | (let ((this-linenum linenum)) |
| 316 | (this-linenum linenum)) | ||
| 317 | (set-marker final-context-start | 319 | (set-marker final-context-start |
| 318 | (+ (point) (- (match-end 0) (match-beginning 0)))) | 320 | (+ (point) (- (match-end 0) (match-beginning 0)))) |
| 319 | (while (< (point) final-context-start) | 321 | (while (< (point) final-context-start) |