unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22874: 25.0.91; whitespace.el documentation looks incorrect
@ 2016-03-01 19:04 David Caldwell
  2019-07-29 13:34 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: David Caldwell @ 2016-03-01 19:04 UTC (permalink / raw)
  To: 22874


[-- Attachment #1.1: Type: text/plain, Size: 648 bytes --]

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

[-- Attachment #1.2: whitespace.doc-fix.patch --]
[-- Type: text/plain, Size: 724 bytes --]

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'.

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3819 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-15 19:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 19:04 bug#22874: 25.0.91; whitespace.el documentation looks incorrect David Caldwell
2019-07-29 13:34 ` Lars Ingebrigtsen
2020-08-15  4:32   ` Stefan Kangas
2020-08-15 18:40     ` David Caldwell
2020-08-15 19:52       ` Bhavin Gandhi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).