the beginning of a line.
(whitespace-buffer): Use `remove-overlays' instead of
`whitespace-unhighlight-the-space' and `overlay-recenter' to speed up overlay
handling.
(whitespace-buffer-leading, whitespace-buffer-trailing): Make these functions
highlight the text removed by `whitespace-buffer-leading-cleanup' and
`whitespace-buffer-trailing-cleanup' respectively.
(whitespace-buffer-search): Use `with-local-quit'. Move `format' out of loop
to speed up scanning larger buffers.
(whitespace-unhighlight-the-space): Remove `remove-hook' since that function is
never added to a hook.
(whitespace-spacetab-regexp, whitespace-ateol-regexp)
(whitespace-buffer-leading-cleanup)
(whitespace-refresh-rescan-list): Fix docstrings.
(whitespace-overlay-put, whitespace-delete-overlay)
(whitespace-overlay-start, whitespace-overlay-end):
Define such that compiler knows they are defined.
(whitespace): Move conditional inside.
Remove "-face" suffix from whitespace-highlight face
2005-06-10 Miles Bader <miles@gnu.org>
* lisp/whitespace.el (whitespace-highlight): Remove "-face" suffix from
face name.
(whitespace-highlight-the-space): Use renamed face.
(whitespace-highlight-face): New backward-compatibility aliases
for renamed face.
seems to have trouble with XEmacs 20.4 (user reported bug). Xemacs
doesn't create group if this is present.
Bug verified. Not yet determined the problem.
Take a tip from Noah Friedman
<friedman@splode.com> and test for existence of `defcustom' and
`defgroup' using fboundp instead of assuming that these are not
present in particular flavors of emacs.
(whitespace-display-in-modeline): Add custom
variable to control displaying the whitespace errors on the
modeline based on suggestion from <klaus.berndl@sdm.de>
(whitespace-buffer): Now returns `t' if unclean
and `nil' if clean, to enable using as a hook function, as
suggested by Puneet Goel <puneet@computer.org>
(whitespace-buffer): Fix a subtle bug that cleaned
up only if quiet was not set, even with whitespace-auto-cleanup set.
(whitespace-mode-line): Now uses less modeline
real estate and shows whitespaces as W:<x>!<y> where <x> is any
type of whitespace which is present in the file, and <y> is any
type of whitespace whose check has been suppressed by setting
`whitespace-check-<whitespace-type>' to nil.
(whitespace-unchecked-whitespaces): New function
to return the list of whitespaces for whom checks have been
suppressed.
(whitespace-display-unchecked-whitespaces):
Renamed to `whitespace-update-modeline' to reflect its functionality.
(whitespace-version): Update to 2.5
Add customization variables to conditionally test
any of the five whitespaces.
(whitespace-spacetab-regexp): Fix doc string.
(whitespace-modes): Add `change-log-mode' to the
list of modes to be checked for bogus whitespaces.
(whitespace-rescan-timer-time): Update documentation.
(whitespace-display-unchecked-whitespaces):
new function to update modeline with untested whitespaces.
(whitespace-buffer): Test only whitespaces whose
checking is turned on, and update modeline using the newly created
`whitespace-display-unchecked-whitespaces'.
(whitespace-cleanup): Cleanup only whitespaces
whose checking is turned on, and update modeline using the newly
created `whitespace-display-unchecked-whitespaces'.
(whitespace-describe): Update documentation.
(whitespace-tickle-timer): Test if `whitespace-rescan-timer-time' is
non-zero before tickling timer.