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 | 6ad2d72091cbafec376d1f76be813ec9bd9aa4fa (patch) | |
tree | 789bd4b44c17dee350bde6f533624af8b911e2b9 /lisp/compare-w.el | |
parent | 487c4cb3d7027d22fce78d0e3d6bfd2d29810cff (diff) | |
download | emacs-6ad2d72091cbafec376d1f76be813ec9bd9aa4fa.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. |