Mercurial > emacs
diff lisp/compare-w.el @ 7701:ec15948b9458
(compare-windows): Make leading whitespace equivalent
to no leading whitespace, according to IGNORE-WHITESPACE argument.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 27 May 1994 07:10:56 +0000 |
parents | c762abae3964 |
children | 324e027f01bc |
line wrap: on
line diff
--- a/lisp/compare-w.el Fri May 27 06:38:40 1994 +0000 +++ b/lisp/compare-w.el Fri May 27 07:10:56 1994 +0000 @@ -99,9 +99,10 @@ (compare-windows-skip-whitespace opoint2) (funcall skip-whitespace opoint2))) (setq p2a (point)) - (and result1 result2 (eq result1 result2) - (setq p1 p1a - p2 p2a))))) + (if (or (stringp skip-whitespace) + (and result1 result2 (eq result1 result2))) + (setq p1 p1a + p2 p2a))))) ;; Try advancing comparing 1000 chars at a time. ;; When that fails, go 500 chars at a time, and so on.