diff options
| author | Richard M. Stallman | 1994-11-20 21:55:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-11-20 21:55:55 +0000 |
| commit | 827342364655e5ac2ae80d9b34b8abb20c186a0f (patch) | |
| tree | af4c9f726e48900d10b7ffd955f2e3a9f4ede84a | |
| parent | 3753ab6f45c99d39e3bbc3e0bba61db5cf0368c9 (diff) | |
| download | emacs-827342364655e5ac2ae80d9b34b8abb20c186a0f.tar.gz emacs-827342364655e5ac2ae80d9b34b8abb20c186a0f.zip | |
(compare-windows): Push mark in both buffers at start.
| -rw-r--r-- | lisp/compare-w.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/compare-w.el b/lisp/compare-w.el index 4987f9abc1b..4f06ef8c53f 100644 --- a/lisp/compare-w.el +++ b/lisp/compare-w.el | |||
| @@ -52,6 +52,12 @@ whitespace is considered to match, and is skipped.") | |||
| 52 | Compares the text starting at point in each window, | 52 | Compares the text starting at point in each window, |
| 53 | moving over text in each one as far as they match. | 53 | moving over text in each one as far as they match. |
| 54 | 54 | ||
| 55 | This command pushes the mark in each window | ||
| 56 | at the prior location of point in that window. | ||
| 57 | If both windows display the same buffer, | ||
| 58 | the mark is pushed twice in that buffer: | ||
| 59 | first in the other window, then in the selected window. | ||
| 60 | |||
| 55 | A prefix arg means ignore changes in whitespace. | 61 | A prefix arg means ignore changes in whitespace. |
| 56 | The variable `compare-windows-whitespace' controls how whitespace is skipped. | 62 | The variable `compare-windows-whitespace' controls how whitespace is skipped. |
| 57 | If `compare-ignore-case' is non-nil, changes in case are also ignored." | 63 | If `compare-ignore-case' is non-nil, changes in case are also ignored." |
| @@ -72,7 +78,9 @@ If `compare-ignore-case' is non-nil, changes in case are also ignored." | |||
| 72 | (setq maxp1 (point-max)) | 78 | (setq maxp1 (point-max)) |
| 73 | (save-excursion | 79 | (save-excursion |
| 74 | (set-buffer b2) | 80 | (set-buffer b2) |
| 81 | (push-mark p2 t) | ||
| 75 | (setq maxp2 (point-max))) | 82 | (setq maxp2 (point-max))) |
| 83 | (push-mark) | ||
| 76 | 84 | ||
| 77 | (setq success t) | 85 | (setq success t) |
| 78 | (while success | 86 | (while success |