Subject: bug#22874: 25.0.91; whitespace.el documentation looks incorrect

From: David Caldwell <[email-masked]>
Date: Tue, 1 Mar 2016 11:04:37 -0800

Hello,

M-x describe-variable RET whitespace-style RET

says:

[snip]

   indentation::tab     8 or more SPACEs at beginning of line are
                        visualized via faces.
                        It has effect only if ‘face’ (see above)
                        is present in ‘whitespace-style’.

   indentation::space   TABs at beginning of line are visualized via
                        faces.
                        It has effect only if ‘face’ (see above)
                        is present in ‘whitespace-style’.

[snip]

That looks backward to me. Attached is a patch that fixes it.

-David
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index 53bf363..c4d74cb 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -440,12 +440,12 @@ whitespace-style
 			It has effect only if `face' (see above)
 			is present in `whitespace-style'.
 
-   indentation::tab	8 or more SPACEs at beginning of line are
+   indentation::space	8 or more SPACEs at beginning of line are
 			visualized via faces.
 			It has effect only if `face' (see above)
 			is present in `whitespace-style'.
 
-   indentation::space	TABs at beginning of line are visualized via
+   indentation::tab	TABs at beginning of line are visualized via
 			faces.
 			It has effect only if `face' (see above)
 			is present in `whitespace-style'.