diff options
| author | Juanma Barranquero | 2008-02-01 14:44:44 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-02-01 14:44:44 +0000 |
| commit | b502217bd845bc6280fd2bb1eacce176ed4f7d90 (patch) | |
| tree | 15948be83471b5e2c848c52c1ece9993821244b5 | |
| parent | 1e2b96c2b8293359fca97b7842838032e8ad20f6 (diff) | |
| download | emacs-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/ChangeLog | 17 | ||||
| -rw-r--r-- | lisp/whitespace.el | 138 |
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 @@ | |||
| 1 | 2008-02-01 Juanma Barranquero <lekktu@gmail.com> | 1 | 2008-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 | |||
| 18 | 2008-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 | ||
| 347 | It's a list which element value can be: | 347 | It'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 | ||
| 370 | It's a list which element value can be: | 370 | It'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 | ||
| 405 | If nil, don't visualize TABs, (HARD) SPACEs and NEWLINEs. | 405 | If nil, don't visualize TABs, (HARD) SPACEs and NEWLINEs. |
| 406 | 406 | ||
| 407 | Used when `whitespace-style' has `color' as an element. | 407 | Used when `whitespace-style' includes the value `color'. |
| 408 | Used also when `whitespace-chars' has `newline' as an element and | 408 | Used also when `whitespace-chars' includes `newline', |
| 409 | `whitespace-style' has `mark' as an element." | 409 | and `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 | ||
| 431 | Used when `whitespace-style' has `color' as an element." | 431 | Used 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 | ||
| 449 | Used when `whitespace-style' has `color' as an element." | 449 | Used 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 | ||
| 467 | Used when `whitespace-style' has `color' as an element." | 467 | Used 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 | ||
| 485 | See `whitespace-display-mappings'. | 485 | See `whitespace-display-mappings'. |
| 486 | 486 | ||
| 487 | Used when `whitespace-style' has `mark' and `color' as elements | 487 | Used when `whitespace-style' includes the values `mark' |
| 488 | and `whitespace-chars' has `newline' as an element." | 488 | and `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 | ||
| 508 | Used when `whitespace-style' has `color' as an element." | 508 | Used 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 | ||
| 523 | See `whitespace-line-column'. | 523 | See `whitespace-line-column'. |
| 524 | 524 | ||
| 525 | Used when `whitespace-style' has `color' as an element." | 525 | Used 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 | ||
| 542 | Used when `whitespace-style' has `color' as an element." | 542 | Used 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 | ||
| 557 | Used when `whitespace-style' has `color' as an element." | 557 | Used 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 | ||
| 572 | Used when `whitespace-style' has `color' as an element." | 572 | Used 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 | ||
| 587 | Used when `whitespace-style' has `color' as an element." | 587 | Used 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 | ||
| 603 | If you're using `mule' package, it may exist other characters besides: | 603 | If 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. | |||
| 620 | NOTE: Enclose always by \\\\( and \\\\) the elements to highlight. | 620 | NOTE: 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 | ||
| 623 | Used when `whitespace-style' has `color' as an element, and | 623 | Used when `whitespace-style' includes the value `color', |
| 624 | `whitespace-chars' has `spaces' as an element." | 624 | and `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 | ||
| 632 | If you're using `mule' package, it may exist other characters | 632 | If you're using `mule' package, there may be other characters |
| 633 | besides \" \" that should be considered SPACE. | 633 | besides \" \" that should be considered SPACE. |
| 634 | 634 | ||
| 635 | Here are some examples: | 635 | Here are some examples: |
| @@ -643,8 +643,8 @@ visualize leading and/or trailing SPACEs. | |||
| 643 | NOTE: Enclose always by \\\\( and \\\\) the elements to highlight. | 643 | NOTE: 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 | ||
| 646 | Used when `whitespace-style' has `color' as an element, and | 646 | Used when `whitespace-style' includes the value `color', |
| 647 | `whitespace-chars' has `spaces' as an element." | 647 | and `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 | ||
| 655 | If you're using `mule' package, it may exist other characters | 655 | If you're using `mule' package, there may be other characters |
| 656 | besides \"\\t\" that should be considered TAB. | 656 | besides \"\\t\" that should be considered TAB. |
| 657 | 657 | ||
| 658 | Here are some examples: | 658 | Here are some examples: |
| @@ -666,8 +666,8 @@ visualize leading and/or trailing TABs. | |||
| 666 | NOTE: Enclose always by \\\\( and \\\\) the elements to highlight. | 666 | NOTE: 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 | ||
| 669 | Used when `whitespace-style' has `color' as an element, and | 669 | Used when `whitespace-style' includes the value `color', |
| 670 | `whitespace-chars' has `tabs' as an element." | 670 | and `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 | ||
| 679 | If you're using `mule' package, it may exist other characters besides: | 679 | If 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 | ||
| 690 | Used when `whitespace-style' has `color' as an element, and | 690 | Used when `whitespace-style' includes the value `color', |
| 691 | `whitespace-chars' has `trailing' as an element." | 691 | and `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 | ||
| 699 | If you're using `mule' package, it may exist other characters besides: | 699 | If 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 | ||
| 704 | that should be considered blank. | 704 | that should be considered blank. |
| 705 | 705 | ||
| 706 | Used when `whitespace-style' has `color' as an element, and | 706 | Used when `whitespace-style' includes the value `color', |
| 707 | `whitespace-chars' has `space-before-tab' as an element." | 707 | and `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 | ||
| 716 | If you're using `mule' package, it may exist other characters besides: | 716 | If 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 | ||
| 721 | that should be considered blank. | 721 | that should be considered blank. |
| 722 | 722 | ||
| 723 | Used when `whitespace-style' has `color' as an element, and | 723 | Used when `whitespace-style' includes the value `color', |
| 724 | `whitespace-chars' has `indentation' as an element." | 724 | and `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 | ||
| 732 | If you're using `mule' package, it may exist other characters besides: | 732 | If 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 | ||
| 737 | that should be considered blank. | 737 | that should be considered blank. |
| 738 | 738 | ||
| 739 | Used when `whitespace-style' has `color' as an element, and | 739 | Used when `whitespace-style' includes the value `color', |
| 740 | `whitespace-chars' has `empty' as an element." | 740 | and `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 | ||
| 748 | If you're using `mule' package, it may exist other characters besides: | 748 | If 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 | ||
| 753 | that should be considered blank. | 753 | that should be considered blank. |
| 754 | 754 | ||
| 755 | Used when `whitespace-style' has `color' as an element, and | 755 | Used when `whitespace-style' includes the value `color', |
| 756 | `whitespace-chars' has `empty' as an element." | 756 | and `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 | ||
| 764 | If you're using `mule' package, it may exist other characters besides: | 764 | If 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 | ||
| 769 | that should be considered blank. | 769 | that should be considered blank. |
| 770 | 770 | ||
| 771 | Used when `whitespace-style' has `color' as an element, and | 771 | Used when `whitespace-style' includes the value `color', |
| 772 | `whitespace-chars' has `space-after-tab' as an element." | 772 | and `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 | ||
| 780 | Used when `whitespace-style' has `color' as an element, and | 780 | Used when `whitespace-style' includes the value `color', |
| 781 | `whitespace-chars' has `lines' or `lines-tail' as an element." | 781 | and `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 | |||
| 830 | be displayed will not have this face applied if the character | 830 | be displayed will not have this face applied if the character |
| 831 | code is above #x1FFFF. | 831 | code is above #x1FFFF. |
| 832 | 832 | ||
| 833 | Used when `whitespace-style' has `mark' as an element." | 833 | Used 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 | ||
| 1076 | Only useful with a windowing system." | 1076 | Only 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. | |||
| 1103 | If global whitespace-mode is on, toggle the option given by ARG | 1103 | If global whitespace-mode is on, toggle the option given by ARG |
| 1104 | and restart global whitespace-mode. | 1104 | and restart global whitespace-mode. |
| 1105 | 1105 | ||
| 1106 | Interactively, it reads one of the following chars: | 1106 | Interactively, 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." | |||
| 1167 | It usually applies to the whole buffer, but in transient mark | 1167 | It usually applies to the whole buffer, but in transient mark |
| 1168 | mode when the mark is active, it applies to the region. It also | 1168 | mode when the mark is active, it applies to the region. It also |
| 1169 | applies to the region when it is not in transiente mark mode, the | 1169 | applies to the region when it is not in transiente mark mode, the |
| 1170 | mark is active and it was pressed `C-u' just before calling | 1170 | mark is active and \\[universal-argument] was pressed just before calling |
| 1171 | `whitespace-cleanup' interactively. | 1171 | `whitespace-cleanup' interactively. |
| 1172 | 1172 | ||
| 1173 | See also `whitespace-cleanup-region'. | 1173 | See also `whitespace-cleanup-region'. |
| 1174 | 1174 | ||
| 1175 | The problems, which are cleaned up, are: | 1175 | The problems cleaned up are: |
| 1176 | 1176 | ||
| 1177 | 1. empty lines at beginning of buffer. | 1177 | 1. empty lines at beginning of buffer. |
| 1178 | 2. empty lines at end of buffer. | 1178 | 2. 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 | ||
| 1182 | 3. 8 or more SPACEs at beginning of line. | 1182 | 3. 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 | ||
| 1186 | 4. SPACEs before TAB. | 1186 | 4. 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 | ||
| 1190 | 5. SPACEs or TABs at end of line. | 1190 | 5. 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 | ||
| 1194 | 6. 8 or more SPACEs after TAB. | 1194 | 6. 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 | ||
| 1234 | The problems, which are cleaned up, are: | 1234 | The problems cleaned up are: |
| 1235 | 1235 | ||
| 1236 | 1. 8 or more SPACEs at beginning of line. | 1236 | 1. 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 | ||
| 1240 | 2. SPACEs before TAB. | 1240 | 2. 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 | ||
| 1244 | 3. SPACEs or TABs at end of line. | 1244 | 3. 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 | ||
| 1248 | 4. 8 or more SPACEs after TAB. | 1248 | 4. 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")) | |||
| 1447 | If LOCAL-P is non-nil, it uses a local context; otherwise, it | 1447 | If LOCAL-P is non-nil, it uses a local context; otherwise, it |
| 1448 | uses a global context. | 1448 | uses a global context. |
| 1449 | 1449 | ||
| 1450 | It reads one of the following chars: | 1450 | It 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) |