Variable: compare-windows-whitespace
compare-windows-whitespace is a customizable variable defined in
compare-w.el.gz.
Value
"\\(\\s-\\|\n\\|\240\\)+"
Documentation
Regexp or function that defines whitespace sequences for compare-windows.
That command optionally ignores changes in 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 window, with
point at the current scanning point. It gets one argument, the point
where M-x compare-windows (compare-windows) was originally called; it should not look at
any text before that point.
If the function returns the same value for both windows, then the whitespace is considered to match, and is skipped.
This variable was added, or its default value changed, in Emacs 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/compare-w.el.gz
(defcustom compare-windows-whitespace "\\(\\s-\\|\n\\|\240\\)+"
"Regexp or function that defines whitespace sequences for `compare-windows'.
That command optionally ignores changes in 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 window, 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.
If the function returns the same value for both windows, then the
whitespace is considered to match, and is skipped."
:version "24.4" ; added \240
:type '(choice regexp function))