diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-05-27 07:10:56 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-05-27 07:10:56 +0000 |
commit | 5a534851893ffbd264a8dd2622169daee6a78f25 (patch) | |
tree | 97969b9c8c2e0ff9360a6d138af2f07f85666bcb /lisp/compare-w.el | |
parent | 40c8b2034a7924b2fc19192aa450f69277853701 (diff) | |
download | emacs-5a534851893ffbd264a8dd2622169daee6a78f25.tar.gz |
(compare-windows): Make leading whitespace equivalent
to no leading whitespace, according to IGNORE-WHITESPACE argument.
Diffstat (limited to 'lisp/compare-w.el')
-rw-r--r-- | lisp/compare-w.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/compare-w.el b/lisp/compare-w.el index 717974b364b..4987f9abc1b 100644 --- a/lisp/compare-w.el +++ b/lisp/compare-w.el @@ -99,9 +99,10 @@ If `compare-ignore-case' is non-nil, changes in case are also ignored." (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. |