aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2008-08-15 00:48:55 +0000
committerVinicius Jose Latorre2008-08-15 00:48:55 +0000
commit4e5a8be947d1f79c91c484bcb4317bc86b165164 (patch)
tree6437a582363af651a9beac81adcbc74ac8e8d474
parent8a7daef5b9fa9e6749fac589b11bd5e15e03f77d (diff)
downloademacs-4e5a8be947d1f79c91c484bcb4317bc86b165164.tar.gz
emacs-4e5a8be947d1f79c91c484bcb4317bc86b165164.zip
Improve whitespace information.
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS122
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 @@
12008-08-14 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2
3 * NEWS: Improve information about whitespace package.
4
12008-08-01 Teodor Zlatanov <tzz@lifelogs.com> 52008-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
diff --git a/etc/NEWS b/etc/NEWS
index db33c03eef0..4286f61bd2e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -542,14 +542,6 @@ It turns on word-wrapping in the current buffer, and rebinds C-a, C-e,
542and C-k to commands that operate by visual lines instead of logical 542and C-k to commands that operate by visual lines instead of logical
543lines. This is a more reliable replacement for longlines-mode. 543lines. This is a more reliable replacement for longlines-mode.
544 544
545** A new `whitespace' package has been installed, and the pre-existing one
546renamed to `old-whitespace'.
547Now, besides reporting bogus blanks, whitespace package has a minor mode and a
548global minor mode to visualize blanks (TAB, (HARD) SPACE and NEWLINE). The
549visualization is made via faces and/or display table. Also it is possible to
550select which kind of blanks should be visualized, for example, trailing blanks,
551leading 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)
554search engines like Beagle, Strigi, and Tracker. The Xesam API 546search engines like Beagle, Strigi, and Tracker. The Xesam API
555requires D-Bus for communication. 547requires D-Bus for communication.
@@ -559,6 +551,120 @@ interfaces according to the zeroconf specification. It communicates
559with Avahi, a zeroconf implementation, via D-Bus messages on systems 551with Avahi, a zeroconf implementation, via D-Bus messages on systems
560which have installed this software. 552which have installed this software.
561 553
554** A new `whitespace' package has been installed, and the pre-existing one
555renamed to `old-whitespace'.
556Now, besides reporting bogus blanks, whitespace package has a minor mode and a
557global minor mode to visualize blanks (TAB, (HARD) SPACE and NEWLINE). The
558visualization is made via faces and/or display table.
559
560The main commands are `whitespace-mode', `whitespace-toggle-options',
561`global-whitespace-mode' and `global-whitespace-toggle-options'.
562
563There 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
568It has the following hook variables: `whitespace-mode-hook',
569`global-whitespace-mode-hook' and `whitespace-load-hook'.
570
571It has the following options: `whitespace-style', `whitespace-action',
572`whitespace-line-column', `whitespace-display-mappings' and
573`whitespace-global-modes'.
574
575It 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
580It 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
586The `whitespace-style' option specifies which kind of blanks should be
587visualized. It's a list containing some or all of the following values:
588
589trailing trailing blanks are visualized via faces.
590
591tabs TABs are visualized via faces.
592
593spaces SPACEs and HARD SPACEs are visualized via faces.
594
595lines 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
600lines-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
607newline NEWLINEs are visualized via faces.
608
609empty empty lines at beginning and/or end of buffer are visualized
610 via faces.
611
612indentation::tab 8 or more SPACEs at beginning of line are visualized
613 via faces.
614
615indentation::space TABs at beginning of line are visualized via faces.
616
617indentation 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
621space-after-tab::tab 8 or more SPACEs after a TAB are visualized via faces.
622
623space-after-tab::space TABs are visualized when occurs 8 or more SPACEs after
624 a TAB via faces.
625
626space-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
630space-before-tab::tab SPACEs before TAB are visualized via faces.
631
632space-before-tab::space TABs are visualized when occurs SPACEs before TAB via
633 faces.
634
635space-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
639space-mark SPACEs and HARD SPACEs are visualized via display table.
640
641tab-mark TABs are visualized via display table.
642
643newline-mark NEWLINEs are visualized via display table.
644
645Any other value is ignored.
646
647The `whitespace-action' option specifies which action is taken when a buffer is
648visited, killed or written. It's a list containing some or all of the
649following values:
650
651nil no action is taken.
652
653cleanup cleanup any bogus whitespace always when local whitespace is
654 turned on. See `whitespace-cleanup' and
655 `whitespace-cleanup-region'.
656
657report-on-bogus report if there is any bogus whitespace always when local
658 whitespace is turned on.
659
660auto-cleanup cleanup any bogus whitespace when buffer is written or killed.
661 See `whitespace-cleanup' and `whitespace-cleanup-region'.
662
663abort-on-bogus abort if there is any bogus whitespace and the buffer is
664 written or killed.
665
666Any 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