diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-07-16 13:33:13 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-07-16 13:33:13 +0000 |
commit | 76960e5022301399da7664a42bfa0f99d8d12a9c (patch) | |
tree | 32afc1bd0fd9643a6065b2c4cdba108ab8e28b2b /lisp/compare-w.el | |
parent | 7f1fa8585763a837e756e7cab840f1c67c6c32f4 (diff) | |
download | emacs-76960e5022301399da7664a42bfa0f99d8d12a9c.tar.gz emacs-76960e5022301399da7664a42bfa0f99d8d12a9c.tar.bz2 emacs-76960e5022301399da7664a42bfa0f99d8d12a9c.zip |
(compare-windows-whitespace): Always allow newline
even if it does not have whitespace syntax.
Diffstat (limited to 'lisp/compare-w.el')
-rw-r--r-- | lisp/compare-w.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/compare-w.el b/lisp/compare-w.el index ce9a47d62c5..8772cfcc6df 100644 --- a/lisp/compare-w.el +++ b/lisp/compare-w.el @@ -36,17 +36,18 @@ :prefix "compare-" :group 'tools) -(defcustom compare-windows-whitespace "\\s-+" +(defcustom compare-windows-whitespace "\\(\\s-\\|\n\\)+" "*Regexp that defines whitespace sequences for \\[compare-windows]. -Changes in whitespace are optionally ignored. +That command optionally ignores changes in whitespace. -The value of `compare-windows-whitespace' may instead be a function; this -function is called in each buffer, with point at the current scanning point. -The function's job is to categorize any whitespace around (including before) -point; it should also advance past any whitespace. +The value of `compare-windows-whitespace' is normally a regexp, but it +can also be a function. The function's job is to categorize any +whitespace around (including before) point; it should also advance +past any whitespace. The function is called in each buffer, with +point at the current scanning point. It gets one argument, the point +where `compare-windows' was originally called; it should not look at +any text before that point. -The function is passed one argument, the point where `compare-windows' -was originally called; it should not consider any text before that point. If the function returns the same value for both buffers, then the whitespace is considered to match, and is skipped." :type '(choice regexp function) |