diff options
| author | Vinicius Jose Latorre | 2008-08-15 00:48:55 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2008-08-15 00:48:55 +0000 |
| commit | 4e5a8be947d1f79c91c484bcb4317bc86b165164 (patch) | |
| tree | 6437a582363af651a9beac81adcbc74ac8e8d474 | |
| parent | 8a7daef5b9fa9e6749fac589b11bd5e15e03f77d (diff) | |
| download | emacs-4e5a8be947d1f79c91c484bcb4317bc86b165164.tar.gz emacs-4e5a8be947d1f79c91c484bcb4317bc86b165164.zip | |
Improve whitespace information.
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 122 |
2 files changed, 118 insertions, 8 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 0d0504ce708..61a497936ae 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-08-14 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * NEWS: Improve information about whitespace package. | ||
| 4 | |||
| 1 | 2008-08-01 Teodor Zlatanov <tzz@lifelogs.com> | 5 | 2008-08-01 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 6 | ||
| 3 | * NEWS: Add entries about the new auth-source integration and | 7 | * NEWS: Add entries about the new auth-source integration and |
| @@ -542,14 +542,6 @@ It turns on word-wrapping in the current buffer, and rebinds C-a, C-e, | |||
| 542 | and C-k to commands that operate by visual lines instead of logical | 542 | and C-k to commands that operate by visual lines instead of logical |
| 543 | lines. This is a more reliable replacement for longlines-mode. | 543 | lines. This is a more reliable replacement for longlines-mode. |
| 544 | 544 | ||
| 545 | ** A new `whitespace' package has been installed, and the pre-existing one | ||
| 546 | renamed to `old-whitespace'. | ||
| 547 | Now, besides reporting bogus blanks, whitespace package has a minor mode and a | ||
| 548 | global minor mode to visualize blanks (TAB, (HARD) SPACE and NEWLINE). The | ||
| 549 | visualization is made via faces and/or display table. Also it is possible to | ||
| 550 | select which kind of blanks should be visualized, for example, trailing blanks, | ||
| 551 | leading blanks, spaces, tabs, newlines, etc. | ||
| 552 | |||
| 553 | ** xesam.el is an implementation of Xesam, an interface to (desktop) | 545 | ** xesam.el is an implementation of Xesam, an interface to (desktop) |
| 554 | search engines like Beagle, Strigi, and Tracker. The Xesam API | 546 | search engines like Beagle, Strigi, and Tracker. The Xesam API |
| 555 | requires D-Bus for communication. | 547 | requires D-Bus for communication. |
| @@ -559,6 +551,120 @@ interfaces according to the zeroconf specification. It communicates | |||
| 559 | with Avahi, a zeroconf implementation, via D-Bus messages on systems | 551 | with Avahi, a zeroconf implementation, via D-Bus messages on systems |
| 560 | which have installed this software. | 552 | which have installed this software. |
| 561 | 553 | ||
| 554 | ** A new `whitespace' package has been installed, and the pre-existing one | ||
| 555 | renamed to `old-whitespace'. | ||
| 556 | Now, besides reporting bogus blanks, whitespace package has a minor mode and a | ||
| 557 | global minor mode to visualize blanks (TAB, (HARD) SPACE and NEWLINE). The | ||
| 558 | visualization is made via faces and/or display table. | ||
| 559 | |||
| 560 | The main commands are `whitespace-mode', `whitespace-toggle-options', | ||
| 561 | `global-whitespace-mode' and `global-whitespace-toggle-options'. | ||
| 562 | |||
| 563 | There are also the following useful commands: `whitespace-newline-mode', | ||
| 564 | `global-whitespace-newline-mode', `whitespace-report', | ||
| 565 | `whitespace-report-region', `whitespace-cleanup' and | ||
| 566 | `whitespace-cleanup-region'. | ||
| 567 | |||
| 568 | It has the following hook variables: `whitespace-mode-hook', | ||
| 569 | `global-whitespace-mode-hook' and `whitespace-load-hook'. | ||
| 570 | |||
| 571 | It has the following options: `whitespace-style', `whitespace-action', | ||
| 572 | `whitespace-line-column', `whitespace-display-mappings' and | ||
| 573 | `whitespace-global-modes'. | ||
| 574 | |||
| 575 | It has the following faces: `whitespace-space', `whitespace-hspace', | ||
| 576 | `whitespace-tab', `whitespace-newline', `whitespace-trailing', | ||
| 577 | `whitespace-line', `whitespace-space-before-tab', `whitespace-indentation', | ||
| 578 | `whitespace-empty' and `whitespace-space-after-tab'. | ||
| 579 | |||
| 580 | It has the following regexp options: `whitespace-space-regexp', | ||
| 581 | `whitespace-hspace-regexp', `whitespace-tab-regexp', | ||
| 582 | `whitespace-trailing-regexp', `whitespace-space-before-tab-regexp', | ||
| 583 | `whitespace-indentation-regexp', `whitespace-empty-at-bob-regexp', | ||
| 584 | `whitespace-empty-at-eob-regexp' and `whitespace-space-after-tab-regexp'. | ||
| 585 | |||
| 586 | The `whitespace-style' option specifies which kind of blanks should be | ||
| 587 | visualized. It's a list containing some or all of the following values: | ||
| 588 | |||
| 589 | trailing trailing blanks are visualized via faces. | ||
| 590 | |||
| 591 | tabs TABs are visualized via faces. | ||
| 592 | |||
| 593 | spaces SPACEs and HARD SPACEs are visualized via faces. | ||
| 594 | |||
| 595 | lines lines whose have columns beyond `whitespace-line-column' are | ||
| 596 | highlighted via faces. | ||
| 597 | Whole line is highlighted. | ||
| 598 | It has precedence over `lines-tail' (see below). | ||
| 599 | |||
| 600 | lines-tail lines whose have columns beyond `whitespace-line-column' are | ||
| 601 | highlighted via faces. | ||
| 602 | But only the part of line which goes beyond | ||
| 603 | `whitespace-line-column' column. | ||
| 604 | It has effect only if `lines' (see above) is not present in | ||
| 605 | `whitespace-style'. | ||
| 606 | |||
| 607 | newline NEWLINEs are visualized via faces. | ||
| 608 | |||
| 609 | empty empty lines at beginning and/or end of buffer are visualized | ||
| 610 | via faces. | ||
| 611 | |||
| 612 | indentation::tab 8 or more SPACEs at beginning of line are visualized | ||
| 613 | via faces. | ||
| 614 | |||
| 615 | indentation::space TABs at beginning of line are visualized via faces. | ||
| 616 | |||
| 617 | indentation 8 or more SPACEs at beginning of line are visualized, if | ||
| 618 | `indent-tabs-mode' (which see) is non-nil; otherwise, TABs at | ||
| 619 | beginning of line are visualized via faces. | ||
| 620 | |||
| 621 | space-after-tab::tab 8 or more SPACEs after a TAB are visualized via faces. | ||
| 622 | |||
| 623 | space-after-tab::space TABs are visualized when occurs 8 or more SPACEs after | ||
| 624 | a TAB via faces. | ||
| 625 | |||
| 626 | space-after-tab 8 or more SPACEs after a TAB are visualized, if | ||
| 627 | `indent-tabs-mode' (which see) is non-nil; otherwise, | ||
| 628 | the TABs are visualized via faces. | ||
| 629 | |||
| 630 | space-before-tab::tab SPACEs before TAB are visualized via faces. | ||
| 631 | |||
| 632 | space-before-tab::space TABs are visualized when occurs SPACEs before TAB via | ||
| 633 | faces. | ||
| 634 | |||
| 635 | space-before-tab SPACEs before TAB are visualized, if `indent-tabs-mode' | ||
| 636 | (which see) is non-nil; otherwise, the TABs are | ||
| 637 | visualized via faces. | ||
| 638 | |||
| 639 | space-mark SPACEs and HARD SPACEs are visualized via display table. | ||
| 640 | |||
| 641 | tab-mark TABs are visualized via display table. | ||
| 642 | |||
| 643 | newline-mark NEWLINEs are visualized via display table. | ||
| 644 | |||
| 645 | Any other value is ignored. | ||
| 646 | |||
| 647 | The `whitespace-action' option specifies which action is taken when a buffer is | ||
| 648 | visited, killed or written. It's a list containing some or all of the | ||
| 649 | following values: | ||
| 650 | |||
| 651 | nil no action is taken. | ||
| 652 | |||
| 653 | cleanup cleanup any bogus whitespace always when local whitespace is | ||
| 654 | turned on. See `whitespace-cleanup' and | ||
| 655 | `whitespace-cleanup-region'. | ||
| 656 | |||
| 657 | report-on-bogus report if there is any bogus whitespace always when local | ||
| 658 | whitespace is turned on. | ||
| 659 | |||
| 660 | auto-cleanup cleanup any bogus whitespace when buffer is written or killed. | ||
| 661 | See `whitespace-cleanup' and `whitespace-cleanup-region'. | ||
| 662 | |||
| 663 | abort-on-bogus abort if there is any bogus whitespace and the buffer is | ||
| 664 | written or killed. | ||
| 665 | |||
| 666 | Any other value is treated as nil. | ||
| 667 | |||
| 562 | 668 | ||
| 563 | * Changes in Specialized Modes and Packages in Emacs 23.1 | 669 | * Changes in Specialized Modes and Packages in Emacs 23.1 |
| 564 | 670 | ||