# HG changeset patch # User Richard M. Stallman # Date 785368555 0 # Node ID 324e027f01bc899c6ca910198e4b73db7ec2b236 # Parent f0264fb75509edb49e8564ac45d04f3e2406c302 (compare-windows): Push mark in both buffers at start. diff -r f0264fb75509 -r 324e027f01bc lisp/compare-w.el --- a/lisp/compare-w.el Sun Nov 20 15:01:14 1994 +0000 +++ b/lisp/compare-w.el Sun Nov 20 21:55:55 1994 +0000 @@ -52,6 +52,12 @@ Compares the text starting at point in each window, moving over text in each one as far as they match. +This command pushes the mark in each window +at the prior location of point in that window. +If both windows display the same buffer, +the mark is pushed twice in that buffer: +first in the other window, then in the selected window. + A prefix arg means ignore changes in whitespace. The variable `compare-windows-whitespace' controls how whitespace is skipped. If `compare-ignore-case' is non-nil, changes in case are also ignored." @@ -72,7 +78,9 @@ (setq maxp1 (point-max)) (save-excursion (set-buffer b2) + (push-mark p2 t) (setq maxp2 (point-max))) + (push-mark) (setq success t) (while success