changeset 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 311f42f91dbd
children 5b7f83eff8dc
files lisp/compare-w.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
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.