aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-02-01 14:44:44 +0000
committerJuanma Barranquero2008-02-01 14:44:44 +0000
commitb502217bd845bc6280fd2bb1eacce176ed4f7d90 (patch)
tree15948be83471b5e2c848c52c1ece9993821244b5
parent1e2b96c2b8293359fca97b7842838032e8ad20f6 (diff)
downloademacs-b502217bd845bc6280fd2bb1eacce176ed4f7d90.tar.gz
emacs-b502217bd845bc6280fd2bb1eacce176ed4f7d90.zip
(whitespace): Set :version tag to 23.1.
(whitespace-turn-off, whitespace-toggle-options): Fix typos. (whitespace-style, whitespace-chars, whitespace-space, whitespace-hspace, whitespace-tab, whitespace-newline, whitespace-trailing, whitespace-line, whitespace-space-before-tab, whitespace-indentation, whitespace-empty, whitespace-space-after-tab, whitespace-hspace-regexp, whitespace-space-regexp, whitespace-tab-regexp, whitespace-trailing-regexp, whitespace-space-before-tab-regexp, whitespace-indentation-regexp, whitespace-empty-at-bob-regexp, whitespace-empty-at-eob-regexp, whitespace-space-after-tab-regexp, whitespace-line-column, whitespace-display-mappings, global-whitespace-toggle-options, whitespace-cleanup, whitespace-cleanup-region, whitespace-interactive-char): Doc fixes.
-rw-r--r--lisp/ChangeLog17
-rw-r--r--lisp/whitespace.el138
2 files changed, 86 insertions, 69 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b2a131b2b76..df79b1264c6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,22 @@
12008-02-01 Juanma Barranquero <lekktu@gmail.com> 12008-02-01 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * whitespace.el (whitespace): Set :version tag to 23.1.
4 (whitespace-turn-off, whitespace-toggle-options): Fix typos.
5 (whitespace-style, whitespace-chars, whitespace-space)
6 (whitespace-hspace, whitespace-tab, whitespace-newline)
7 (whitespace-trailing, whitespace-line, whitespace-space-before-tab)
8 (whitespace-indentation, whitespace-empty, whitespace-space-after-tab)
9 (whitespace-hspace-regexp, whitespace-space-regexp)
10 (whitespace-tab-regexp, whitespace-trailing-regexp)
11 (whitespace-space-before-tab-regexp, whitespace-indentation-regexp)
12 (whitespace-empty-at-bob-regexp, whitespace-empty-at-eob-regexp)
13 (whitespace-space-after-tab-regexp, whitespace-line-column)
14 (whitespace-display-mappings, global-whitespace-toggle-options)
15 (whitespace-cleanup, whitespace-cleanup-region)
16 (whitespace-interactive-char): Doc fixes.
17
182008-02-01 Juanma Barranquero <lekktu@gmail.com>
19
3 * whitespace.el (global-whitespace-mode): Fix modeline lighter. 20 * whitespace.el (global-whitespace-mode): Fix modeline lighter.
4 When turning off the global mode, turn off the local modes too 21 When turning off the global mode, turn off the local modes too
5 if whitespace is being unloaded. 22 if whitespace is being unloaded.
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index 4615e28b97f..fcd5a79cb99 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -175,23 +175,23 @@
175;; 175;;
176;; 1. empty lines at beginning of buffer. 176;; 1. empty lines at beginning of buffer.
177;; 2. empty lines at end of buffer. 177;; 2. empty lines at end of buffer.
178;; If `whitespace-chars' has `empty' as an element, remove all 178;; If `whitespace-chars' includes the value `empty', remove all
179;; empty lines at beginning and/or end of buffer. 179;; empty lines at beginning and/or end of buffer.
180;; 180;;
181;; 3. 8 or more SPACEs at beginning of line. 181;; 3. 8 or more SPACEs at beginning of line.
182;; If `whitespace-chars' has `indentation' as an element, replace 8 182;; If `whitespace-chars' includes the value `indentation', replace 8
183;; or more SPACEs at beginning of line by TABs. 183;; or more SPACEs at beginning of line by TABs.
184;; 184;;
185;; 4. SPACEs before TAB. 185;; 4. SPACEs before TAB.
186;; If `whitespace-chars' has `space-before-tab' as an element, 186;; If `whitespace-chars' includes the value `space-before-tab',
187;; replace SPACEs by TABs. 187;; replace SPACEs by TABs.
188;; 188;;
189;; 5. SPACEs or TABs at end of line. 189;; 5. SPACEs or TABs at end of line.
190;; If `whitespace-chars' has `trailing' as an element, remove all 190;; If `whitespace-chars' includes the value `trailing', remove all
191;; SPACEs or TABs at end of line." 191;; SPACEs or TABs at end of line."
192;; 192;;
193;; 6. 8 or more SPACEs after TAB. 193;; 6. 8 or more SPACEs after TAB.
194;; If `whitespace-chars' has `space-after-tab' as an element, 194;; If `whitespace-chars' includes the value `space-after-tab',
195;; replace SPACEs by TABs. 195;; replace SPACEs by TABs.
196;; 196;;
197;; 197;;
@@ -336,7 +336,7 @@
336(defgroup whitespace nil 336(defgroup whitespace nil
337 "Visualize blanks (TAB, (HARD) SPACE and NEWLINE)." 337 "Visualize blanks (TAB, (HARD) SPACE and NEWLINE)."
338 :link '(emacs-library-link :tag "Source Lisp File" "whitespace.el") 338 :link '(emacs-library-link :tag "Source Lisp File" "whitespace.el")
339 :version "22.2" 339 :version "23.1"
340 :group 'wp 340 :group 'wp
341 :group 'data) 341 :group 'data)
342 342
@@ -344,7 +344,7 @@
344(defcustom whitespace-style '(mark color) 344(defcustom whitespace-style '(mark color)
345 "*Specify the visualization style. 345 "*Specify the visualization style.
346 346
347It's a list which element value can be: 347It's a list containing some or all of the following values:
348 348
349 mark display mappings are visualized. 349 mark display mappings are visualized.
350 350
@@ -367,7 +367,7 @@ See also `whitespace-display-mappings' for documentation."
367 indentation empty space-after-tab) 367 indentation empty space-after-tab)
368 "*Specify which kind of blank is visualized. 368 "*Specify which kind of blank is visualized.
369 369
370It's a list which element value can be: 370It's a list containing some or all of the following values:
371 371
372 trailing trailing blanks are visualized. 372 trailing trailing blanks are visualized.
373 373
@@ -404,9 +404,9 @@ Any other value is ignored.
404 404
405If nil, don't visualize TABs, (HARD) SPACEs and NEWLINEs. 405If nil, don't visualize TABs, (HARD) SPACEs and NEWLINEs.
406 406
407Used when `whitespace-style' has `color' as an element. 407Used when `whitespace-style' includes the value `color'.
408Used also when `whitespace-chars' has `newline' as an element and 408Used also when `whitespace-chars' includes `newline',
409`whitespace-style' has `mark' as an element." 409and `whitespace-style' includes `mark'."
410 :type '(repeat :tag "Kind of Blank" 410 :type '(repeat :tag "Kind of Blank"
411 (choice :tag "Kind of Blank" 411 (choice :tag "Kind of Blank"
412 (const :tag "Trailing TABs, SPACEs and HARD SPACEs" 412 (const :tag "Trailing TABs, SPACEs and HARD SPACEs"
@@ -428,7 +428,7 @@ Used also when `whitespace-chars' has `newline' as an element and
428(defcustom whitespace-space 'whitespace-space 428(defcustom whitespace-space 'whitespace-space
429 "*Symbol face used to visualize SPACE. 429 "*Symbol face used to visualize SPACE.
430 430
431Used when `whitespace-style' has `color' as an element." 431Used when `whitespace-style' includes the value `color'."
432 :type 'face 432 :type 'face
433 :group 'whitespace) 433 :group 'whitespace)
434 434
@@ -446,7 +446,7 @@ Used when `whitespace-style' has `color' as an element."
446(defcustom whitespace-hspace 'whitespace-hspace 446(defcustom whitespace-hspace 'whitespace-hspace
447 "*Symbol face used to visualize HARD SPACE. 447 "*Symbol face used to visualize HARD SPACE.
448 448
449Used when `whitespace-style' has `color' as an element." 449Used when `whitespace-style' includes the value `color'."
450 :type 'face 450 :type 'face
451 :group 'whitespace) 451 :group 'whitespace)
452 452
@@ -464,7 +464,7 @@ Used when `whitespace-style' has `color' as an element."
464(defcustom whitespace-tab 'whitespace-tab 464(defcustom whitespace-tab 'whitespace-tab
465 "*Symbol face used to visualize TAB. 465 "*Symbol face used to visualize TAB.
466 466
467Used when `whitespace-style' has `color' as an element." 467Used when `whitespace-style' includes the value `color'."
468 :type 'face 468 :type 'face
469 :group 'whitespace) 469 :group 'whitespace)
470 470
@@ -484,8 +484,8 @@ Used when `whitespace-style' has `color' as an element."
484 484
485See `whitespace-display-mappings'. 485See `whitespace-display-mappings'.
486 486
487Used when `whitespace-style' has `mark' and `color' as elements 487Used when `whitespace-style' includes the values `mark'
488and `whitespace-chars' has `newline' as an element." 488and `color', and `whitespace-chars' includes `newline'."
489 :type 'face 489 :type 'face
490 :group 'whitespace) 490 :group 'whitespace)
491 491
@@ -505,7 +505,7 @@ See `whitespace-display-mappings'."
505(defcustom whitespace-trailing 'whitespace-trailing 505(defcustom whitespace-trailing 'whitespace-trailing
506 "*Symbol face used to visualize traling blanks. 506 "*Symbol face used to visualize traling blanks.
507 507
508Used when `whitespace-style' has `color' as an element." 508Used when `whitespace-style' includes the value `color'."
509 :type 'face 509 :type 'face
510 :group 'whitespace) 510 :group 'whitespace)
511 511
@@ -522,7 +522,7 @@ Used when `whitespace-style' has `color' as an element."
522 522
523See `whitespace-line-column'. 523See `whitespace-line-column'.
524 524
525Used when `whitespace-style' has `color' as an element." 525Used when `whitespace-style' includes the value `color'."
526 :type 'face 526 :type 'face
527 :group 'whitespace) 527 :group 'whitespace)
528 528
@@ -539,7 +539,7 @@ See `whitespace-line-column'."
539(defcustom whitespace-space-before-tab 'whitespace-space-before-tab 539(defcustom whitespace-space-before-tab 'whitespace-space-before-tab
540 "*Symbol face used to visualize SPACEs before TAB. 540 "*Symbol face used to visualize SPACEs before TAB.
541 541
542Used when `whitespace-style' has `color' as an element." 542Used when `whitespace-style' includes the value `color'."
543 :type 'face 543 :type 'face
544 :group 'whitespace) 544 :group 'whitespace)
545 545
@@ -554,7 +554,7 @@ Used when `whitespace-style' has `color' as an element."
554(defcustom whitespace-indentation 'whitespace-indentation 554(defcustom whitespace-indentation 'whitespace-indentation
555 "*Symbol face used to visualize 8 or more SPACEs at beginning of line. 555 "*Symbol face used to visualize 8 or more SPACEs at beginning of line.
556 556
557Used when `whitespace-style' has `color' as an element." 557Used when `whitespace-style' includes the value `color'."
558 :type 'face 558 :type 'face
559 :group 'whitespace) 559 :group 'whitespace)
560 560
@@ -569,7 +569,7 @@ Used when `whitespace-style' has `color' as an element."
569(defcustom whitespace-empty 'whitespace-empty 569(defcustom whitespace-empty 'whitespace-empty
570 "*Symbol face used to visualize empty lines at beginning and/or end of buffer. 570 "*Symbol face used to visualize empty lines at beginning and/or end of buffer.
571 571
572Used when `whitespace-style' has `color' as an element." 572Used when `whitespace-style' includes the value `color'."
573 :type 'face 573 :type 'face
574 :group 'whitespace) 574 :group 'whitespace)
575 575
@@ -584,7 +584,7 @@ Used when `whitespace-style' has `color' as an element."
584(defcustom whitespace-space-after-tab 'whitespace-space-after-tab 584(defcustom whitespace-space-after-tab 'whitespace-space-after-tab
585 "*Symbol face used to visualize 8 or more SPACEs after TAB. 585 "*Symbol face used to visualize 8 or more SPACEs after TAB.
586 586
587Used when `whitespace-style' has `color' as an element." 587Used when `whitespace-style' includes the value `color'."
588 :type 'face 588 :type 'face
589 :group 'whitespace) 589 :group 'whitespace)
590 590
@@ -600,7 +600,7 @@ Used when `whitespace-style' has `color' as an element."
600 "\\(\\(\xA0\\|\x8A0\\|\x920\\|\xE20\\|\xF20\\)+\\)" 600 "\\(\\(\xA0\\|\x8A0\\|\x920\\|\xE20\\|\xF20\\)+\\)"
601 "*Specify HARD SPACE characters regexp. 601 "*Specify HARD SPACE characters regexp.
602 602
603If you're using `mule' package, it may exist other characters besides: 603If you're using `mule' package, there may be other characters besides:
604 604
605 \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \"\\xF20\" 605 \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \"\\xF20\"
606 606
@@ -620,8 +620,8 @@ visualize only HARD SPACEs between TABs.
620NOTE: Enclose always by \\\\( and \\\\) the elements to highlight. 620NOTE: Enclose always by \\\\( and \\\\) the elements to highlight.
621 Use exactly one pair of enclosing \\\\( and \\\\). 621 Use exactly one pair of enclosing \\\\( and \\\\).
622 622
623Used when `whitespace-style' has `color' as an element, and 623Used when `whitespace-style' includes the value `color',
624`whitespace-chars' has `spaces' as an element." 624and `whitespace-chars' includes `spaces'."
625 :type '(regexp :tag "HARD SPACE Chars") 625 :type '(regexp :tag "HARD SPACE Chars")
626 :group 'whitespace) 626 :group 'whitespace)
627 627
@@ -629,7 +629,7 @@ Used when `whitespace-style' has `color' as an element, and
629(defcustom whitespace-space-regexp "\\( +\\)" 629(defcustom whitespace-space-regexp "\\( +\\)"
630 "*Specify SPACE characters regexp. 630 "*Specify SPACE characters regexp.
631 631
632If you're using `mule' package, it may exist other characters 632If you're using `mule' package, there may be other characters
633besides \" \" that should be considered SPACE. 633besides \" \" that should be considered SPACE.
634 634
635Here are some examples: 635Here are some examples:
@@ -643,8 +643,8 @@ visualize leading and/or trailing SPACEs.
643NOTE: Enclose always by \\\\( and \\\\) the elements to highlight. 643NOTE: Enclose always by \\\\( and \\\\) the elements to highlight.
644 Use exactly one pair of enclosing \\\\( and \\\\). 644 Use exactly one pair of enclosing \\\\( and \\\\).
645 645
646Used when `whitespace-style' has `color' as an element, and 646Used when `whitespace-style' includes the value `color',
647`whitespace-chars' has `spaces' as an element." 647and `whitespace-chars' includes `spaces'."
648 :type '(regexp :tag "SPACE Chars") 648 :type '(regexp :tag "SPACE Chars")
649 :group 'whitespace) 649 :group 'whitespace)
650 650
@@ -652,7 +652,7 @@ Used when `whitespace-style' has `color' as an element, and
652(defcustom whitespace-tab-regexp "\\(\t+\\)" 652(defcustom whitespace-tab-regexp "\\(\t+\\)"
653 "*Specify TAB characters regexp. 653 "*Specify TAB characters regexp.
654 654
655If you're using `mule' package, it may exist other characters 655If you're using `mule' package, there may be other characters
656besides \"\\t\" that should be considered TAB. 656besides \"\\t\" that should be considered TAB.
657 657
658Here are some examples: 658Here are some examples:
@@ -666,8 +666,8 @@ visualize leading and/or trailing TABs.
666NOTE: Enclose always by \\\\( and \\\\) the elements to highlight. 666NOTE: Enclose always by \\\\( and \\\\) the elements to highlight.
667 Use exactly one pair of enclosing \\\\( and \\\\). 667 Use exactly one pair of enclosing \\\\( and \\\\).
668 668
669Used when `whitespace-style' has `color' as an element, and 669Used when `whitespace-style' includes the value `color',
670`whitespace-chars' has `tabs' as an element." 670and `whitespace-chars' includes `tabs'."
671 :type '(regexp :tag "TAB Chars") 671 :type '(regexp :tag "TAB Chars")
672 :group 'whitespace) 672 :group 'whitespace)
673 673
@@ -676,7 +676,7 @@ Used when `whitespace-style' has `color' as an element, and
676 "\t\\| \\|\xA0\\|\x8A0\\|\x920\\|\xE20\\|\xF20" 676 "\t\\| \\|\xA0\\|\x8A0\\|\x920\\|\xE20\\|\xF20"
677 "*Specify trailing characters regexp. 677 "*Specify trailing characters regexp.
678 678
679If you're using `mule' package, it may exist other characters besides: 679If you're using `mule' package, there may be other characters besides:
680 680
681 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \ 681 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \
682\"\\xF20\" 682\"\\xF20\"
@@ -687,8 +687,8 @@ NOTE: DO NOT enclose by \\\\( and \\\\) the elements to highlight.
687 `whitespace-mode' surrounds this regexp by \"\\\\(\\\\(\" and 687 `whitespace-mode' surrounds this regexp by \"\\\\(\\\\(\" and
688 \"\\\\)+\\\\)$\". 688 \"\\\\)+\\\\)$\".
689 689
690Used when `whitespace-style' has `color' as an element, and 690Used when `whitespace-style' includes the value `color',
691`whitespace-chars' has `trailing' as an element." 691and `whitespace-chars' includes `trailing'."
692 :type '(regexp :tag "Trailing Chars") 692 :type '(regexp :tag "Trailing Chars")
693 :group 'whitespace) 693 :group 'whitespace)
694 694
@@ -696,15 +696,15 @@ Used when `whitespace-style' has `color' as an element, and
696(defcustom whitespace-space-before-tab-regexp "\\( +\\)\t" 696(defcustom whitespace-space-before-tab-regexp "\\( +\\)\t"
697 "*Specify SPACEs before TAB regexp. 697 "*Specify SPACEs before TAB regexp.
698 698
699If you're using `mule' package, it may exist other characters besides: 699If you're using `mule' package, there may be other characters besides:
700 700
701 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \ 701 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \
702\"\\xF20\" 702\"\\xF20\"
703 703
704that should be considered blank. 704that should be considered blank.
705 705
706Used when `whitespace-style' has `color' as an element, and 706Used when `whitespace-style' includes the value `color',
707`whitespace-chars' has `space-before-tab' as an element." 707and `whitespace-chars' includes `space-before-tab'."
708 :type '(regexp :tag "SPACEs Before TAB") 708 :type '(regexp :tag "SPACEs Before TAB")
709 :group 'whitespace) 709 :group 'whitespace)
710 710
@@ -713,15 +713,15 @@ Used when `whitespace-style' has `color' as an element, and
713 "^\t*\\(\\( \\{8\\}\\)+\\)[^\n\t]" 713 "^\t*\\(\\( \\{8\\}\\)+\\)[^\n\t]"
714 "*Specify regexp for 8 or more SPACEs at beginning of line. 714 "*Specify regexp for 8 or more SPACEs at beginning of line.
715 715
716If you're using `mule' package, it may exist other characters besides: 716If you're using `mule' package, there may be other characters besides:
717 717
718 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \ 718 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \
719\"\\xF20\" 719\"\\xF20\"
720 720
721that should be considered blank. 721that should be considered blank.
722 722
723Used when `whitespace-style' has `color' as an element, and 723Used when `whitespace-style' includes the value `color',
724`whitespace-chars' has `indentation' as an element." 724and `whitespace-chars' includes `indentation'."
725 :type '(regexp :tag "Indentation SPACEs") 725 :type '(regexp :tag "Indentation SPACEs")
726 :group 'whitespace) 726 :group 'whitespace)
727 727
@@ -729,15 +729,15 @@ Used when `whitespace-style' has `color' as an element, and
729(defcustom whitespace-empty-at-bob-regexp "\\`\\(\\([ \t]*\n\\)+\\)" 729(defcustom whitespace-empty-at-bob-regexp "\\`\\(\\([ \t]*\n\\)+\\)"
730 "*Specify regexp for empty lines at beginning of buffer. 730 "*Specify regexp for empty lines at beginning of buffer.
731 731
732If you're using `mule' package, it may exist other characters besides: 732If you're using `mule' package, there may be other characters besides:
733 733
734 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \ 734 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \
735\"\\xF20\" 735\"\\xF20\"
736 736
737that should be considered blank. 737that should be considered blank.
738 738
739Used when `whitespace-style' has `color' as an element, and 739Used when `whitespace-style' includes the value `color',
740`whitespace-chars' has `empty' as an element." 740and `whitespace-chars' includes `empty'."
741 :type '(regexp :tag "Empty Lines At Beginning Of Buffer") 741 :type '(regexp :tag "Empty Lines At Beginning Of Buffer")
742 :group 'whitespace) 742 :group 'whitespace)
743 743
@@ -745,15 +745,15 @@ Used when `whitespace-style' has `color' as an element, and
745(defcustom whitespace-empty-at-eob-regexp "^\\([ \t\n]+\\)\\'" 745(defcustom whitespace-empty-at-eob-regexp "^\\([ \t\n]+\\)\\'"
746 "*Specify regexp for empty lines at end of buffer. 746 "*Specify regexp for empty lines at end of buffer.
747 747
748If you're using `mule' package, it may exist other characters besides: 748If you're using `mule' package, there may be other characters besides:
749 749
750 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \ 750 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \
751\"\\xF20\" 751\"\\xF20\"
752 752
753that should be considered blank. 753that should be considered blank.
754 754
755Used when `whitespace-style' has `color' as an element, and 755Used when `whitespace-style' includes the value `color',
756`whitespace-chars' has `empty' as an element." 756and `whitespace-chars' includes `empty'."
757 :type '(regexp :tag "Empty Lines At End Of Buffer") 757 :type '(regexp :tag "Empty Lines At End Of Buffer")
758 :group 'whitespace) 758 :group 'whitespace)
759 759
@@ -761,15 +761,15 @@ Used when `whitespace-style' has `color' as an element, and
761(defcustom whitespace-space-after-tab-regexp "\t\\(\\( \\{8\\}\\)+\\)" 761(defcustom whitespace-space-after-tab-regexp "\t\\(\\( \\{8\\}\\)+\\)"
762 "*Specify regexp for 8 or more SPACEs after TAB. 762 "*Specify regexp for 8 or more SPACEs after TAB.
763 763
764If you're using `mule' package, it may exist other characters besides: 764If you're using `mule' package, there may be other characters besides:
765 765
766 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \ 766 \" \" \"\\t\" \"\\xA0\" \"\\x8A0\" \"\\x920\" \"\\xE20\" \
767\"\\xF20\" 767\"\\xF20\"
768 768
769that should be considered blank. 769that should be considered blank.
770 770
771Used when `whitespace-style' has `color' as an element, and 771Used when `whitespace-style' includes the value `color',
772`whitespace-chars' has `space-after-tab' as an element." 772and `whitespace-chars' includes `space-after-tab'."
773 :type '(regexp :tag "SPACEs After TAB") 773 :type '(regexp :tag "SPACEs After TAB")
774 :group 'whitespace) 774 :group 'whitespace)
775 775
@@ -777,8 +777,8 @@ Used when `whitespace-style' has `color' as an element, and
777(defcustom whitespace-line-column 80 777(defcustom whitespace-line-column 80
778 "*Specify column beyond which the line is highlighted. 778 "*Specify column beyond which the line is highlighted.
779 779
780Used when `whitespace-style' has `color' as an element, and 780Used when `whitespace-style' includes the value `color',
781`whitespace-chars' has `lines' or `lines-tail' as an element." 781and `whitespace-chars' includes `lines' or `lines-tail'."
782 :type '(integer :tag "Line Length") 782 :type '(integer :tag "Line Length")
783 :group 'whitespace) 783 :group 'whitespace)
784 784
@@ -830,7 +830,7 @@ The NEWLINE character is displayed using the face given by
830be displayed will not have this face applied if the character 830be displayed will not have this face applied if the character
831code is above #x1FFFF. 831code is above #x1FFFF.
832 832
833Used when `whitespace-style' has `mark' as an element." 833Used when `whitespace-style' includes the value `mark'."
834 :type '(repeat 834 :type '(repeat
835 (list :tag "Character Mapping" 835 (list :tag "Character Mapping"
836 (character :tag "Char") 836 (character :tag "Char")
@@ -1070,8 +1070,8 @@ The valid symbols are:
1070 space-after-tab toggle SPACEs after TAB visualization 1070 space-after-tab toggle SPACEs after TAB visualization
1071 color toggle color faces 1071 color toggle color faces
1072 mark toggle visual mark 1072 mark toggle visual mark
1073 whitespace-chars restore `whitespace-chars' value 1073 whitespace-chars restore `whitespace-chars' value
1074 whitespace-style restore `whitespace-style' value 1074 whitespace-style restore `whitespace-style' value
1075 1075
1076Only useful with a windowing system." 1076Only useful with a windowing system."
1077 (interactive (whitespace-interactive-char t)) 1077 (interactive (whitespace-interactive-char t))
@@ -1103,7 +1103,7 @@ and turn on global whitespace-mode.
1103If global whitespace-mode is on, toggle the option given by ARG 1103If global whitespace-mode is on, toggle the option given by ARG
1104and restart global whitespace-mode. 1104and restart global whitespace-mode.
1105 1105
1106Interactively, it reads one of the following chars: 1106Interactively, it accepts one of the following chars:
1107 1107
1108 CHAR MEANING 1108 CHAR MEANING
1109 t toggle TAB visualization 1109 t toggle TAB visualization
@@ -1167,32 +1167,32 @@ Only useful with a windowing system."
1167It usually applies to the whole buffer, but in transient mark 1167It usually applies to the whole buffer, but in transient mark
1168mode when the mark is active, it applies to the region. It also 1168mode when the mark is active, it applies to the region. It also
1169applies to the region when it is not in transiente mark mode, the 1169applies to the region when it is not in transiente mark mode, the
1170mark is active and it was pressed `C-u' just before calling 1170mark is active and \\[universal-argument] was pressed just before calling
1171`whitespace-cleanup' interactively. 1171`whitespace-cleanup' interactively.
1172 1172
1173See also `whitespace-cleanup-region'. 1173See also `whitespace-cleanup-region'.
1174 1174
1175The problems, which are cleaned up, are: 1175The problems cleaned up are:
1176 1176
11771. empty lines at beginning of buffer. 11771. empty lines at beginning of buffer.
11782. empty lines at end of buffer. 11782. empty lines at end of buffer.
1179 If `whitespace-chars' has `empty' as an element, remove all 1179 If `whitespace-chars' includes the value `empty', remove all
1180 empty lines at beginning and/or end of buffer. 1180 empty lines at beginning and/or end of buffer.
1181 1181
11823. 8 or more SPACEs at beginning of line. 11823. 8 or more SPACEs at beginning of line.
1183 If `whitespace-chars' has `indentation' as an element, replace 1183 If `whitespace-chars' includes the value `indentation', replace
1184 8 or more SPACEs at beginning of line by TABs. 1184 8 or more SPACEs at beginning of line by TABs.
1185 1185
11864. SPACEs before TAB. 11864. SPACEs before TAB.
1187 If `whitespace-chars' has `space-before-tab' as an element, 1187 If `whitespace-chars' includes the value `space-before-tab',
1188 replace SPACEs by TABs. 1188 replace SPACEs by TABs.
1189 1189
11905. SPACEs or TABs at end of line. 11905. SPACEs or TABs at end of line.
1191 If `whitespace-chars' has `trailing' as an element, remove all 1191 If `whitespace-chars' includes the value `trailing', remove all
1192 SPACEs or TABs at end of line. 1192 SPACEs or TABs at end of line.
1193 1193
11946. 8 or more SPACEs after TAB. 11946. 8 or more SPACEs after TAB.
1195 If `whitespace-chars' has `space-after-tab' as an element, 1195 If `whitespace-chars' includes the value `space-after-tab',
1196 replace SPACEs by TABs." 1196 replace SPACEs by TABs."
1197 (interactive "@*") 1197 (interactive "@*")
1198 (if (and (or transient-mark-mode 1198 (if (and (or transient-mark-mode
@@ -1231,22 +1231,22 @@ The problems, which are cleaned up, are:
1231(defun whitespace-cleanup-region (start end) 1231(defun whitespace-cleanup-region (start end)
1232 "Cleanup some blank problems at region. 1232 "Cleanup some blank problems at region.
1233 1233
1234The problems, which are cleaned up, are: 1234The problems cleaned up are:
1235 1235
12361. 8 or more SPACEs at beginning of line. 12361. 8 or more SPACEs at beginning of line.
1237 If `whitespace-chars' has `indentation' as an element, replace 1237 If `whitespace-chars' includes the value `indentation', replace
1238 8 or more SPACEs at beginning of line by TABs. 1238 8 or more SPACEs at beginning of line by TABs.
1239 1239
12402. SPACEs before TAB. 12402. SPACEs before TAB.
1241 If `whitespace-chars' has `space-before-tab' as an element, 1241 If `whitespace-chars' includes the value `space-before-tab',
1242 replace SPACEs by TABs. 1242 replace SPACEs by TABs.
1243 1243
12443. SPACEs or TABs at end of line. 12443. SPACEs or TABs at end of line.
1245 If `whitespace-chars' has `trailing' as an element, remove all 1245 If `whitespace-chars' includes the value `trailing', remove all
1246 SPACEs or TABs at end of line. 1246 SPACEs or TABs at end of line.
1247 1247
12484. 8 or more SPACEs after TAB. 12484. 8 or more SPACEs after TAB.
1249 If `whitespace-chars' has `space-after-tab' as an element, 1249 If `whitespace-chars' includes the value `space-after-tab',
1250 replace SPACEs by TABs." 1250 replace SPACEs by TABs."
1251 (interactive "@*r") 1251 (interactive "@*r")
1252 (let ((rstart (min start end)) 1252 (let ((rstart (min start end))
@@ -1447,7 +1447,7 @@ can't split window to display whitespace toggle options"))
1447If LOCAL-P is non-nil, it uses a local context; otherwise, it 1447If LOCAL-P is non-nil, it uses a local context; otherwise, it
1448uses a global context. 1448uses a global context.
1449 1449
1450It reads one of the following chars: 1450It accepts one of the following chars:
1451 1451
1452 CHAR MEANING 1452 CHAR MEANING
1453 t toggle TAB visualization 1453 t toggle TAB visualization
@@ -1556,7 +1556,7 @@ options are valid."
1556 1556
1557 1557
1558(defun whitespace-turn-off () 1558(defun whitespace-turn-off ()
1559 "Turn off whitesapce visualization." 1559 "Turn off whitespace visualization."
1560 (when (memq 'color whitespace-active-style) 1560 (when (memq 'color whitespace-active-style)
1561 (whitespace-color-off)) 1561 (whitespace-color-off))
1562 (when (memq 'mark whitespace-active-style) 1562 (when (memq 'mark whitespace-active-style)