1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

52 Commits

Author SHA1 Message Date
Martin Rudalics
ae18604f63 (top level): Remove calls putting
permanent-local nil property since these are no-ops.
2007-03-24 09:51:52 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Glenn Morris
c90f275771 Update copyright years. 2006-12-05 07:06:08 +00:00
Dan Nicolaescu
2b058c727e (whitespace-cleanup-internal): Use current
argument for recursive call.
2006-12-04 07:34:01 +00:00
Chong Yidong
8eda2ca3b3 (whitespace-buffer): Call remove-overlays after overlay-recenter for
performance.  Suggested by Martin Rudalics.
2006-11-07 17:37:14 +00:00
Eli Zaretskii
113fa44847 (whitespace-indent-regexp): Make this match any multiples of eight spaces near
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.
2006-11-04 10:34:56 +00:00
Richard M. Stallman
0d92660c53 (whitespace-cleanup): Doc fix. 2006-08-21 10:55:53 +00:00
Eli Zaretskii
6e6f0cb6ab (whitespace-cleanup-internal): New optional arg REGION-ONLY. If it's non-nil,
modify the message to the user accordingly.
(whitespace-cleanup-region): Call whitespace-cleanup-internal with a non-nil
argument.
2006-08-18 12:50:08 +00:00
Rajesh Vaidheeswarran
f473c8d5af whitespace.el - make whitesspace-cleanup use the current active regoin, if there is one. 2006-05-25 18:09:25 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Thien-Thi Nguyen
04f0adee72 (whitespace-cleanup): Doc fix. 2005-10-23 13:30:15 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Richard M. Stallman
9d8f0a3cbf (whitespace-make-overlay)
(whitespace-overlay-put, whitespace-delete-overlay)
(whitespace-overlay-start, whitespace-overlay-end):
Define such that compiler knows they are defined.
(whitespace): Move conditional inside.
2005-07-16 17:10:58 +00:00
Juanma Barranquero
7f34d6d462 (whitespace-check-buffer-leading, whitespace-check-buffer-trailing,
whitespace-check-buffer-indent, whitespace-check-buffer-spacetab,
whitespace-check-buffer-ateol, whitespace-highlighted-space,
whitespace-check-leading-whitespace, whitespace-check-trailing-whitespace,
whitespace-check-spacetab-whitespace, whitespace-check-indent-whitespace,
whitespace-check-ateol-whitespace, whitespace-abort-on-error, whitespace-modes):
Fix typos in docstrings.
(defgroup, defcustom): Doc fix.
2005-07-13 10:32:08 +00:00
Richard M. Stallman
185d43ee89 (whitespace-buffer-leading-cleanup): Simplify w/ skip-chars-forward.
(whitespace-buffer-trailing-cleanup): Simplify w/ skip-chars-backward.
2005-07-08 22:33:00 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Miles Bader
ee01ad0e03 Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-371
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.
2005-06-10 08:13:51 +00:00
Rajesh Vaidheeswarran
df5e8d2c04 whitespace.el - revert hasty fix, fix highlight area for leading and trailing space. 2005-04-11 23:47:54 +00:00
Rajesh Vaidheeswarran
7a15a27156 whitespace.el - fix higlighting test and bump rev 2005-04-11 23:25:46 +00:00
Richard M. Stallman
7dbe67a412 (whitespace-highlight-the-space):
Don't call whitespace-unhighlight-the-space here.
2005-04-11 18:39:13 +00:00
Stefan Monnier
c22c3db00e (whitespace-highlight-the-space): Put the same overlay
in the buffer and in whitespace-highlighted-space.
(whitespace-unhighlight-the-space): Simplify.
(whitespace-buffer): Simplify.
2005-04-08 14:40:57 +00:00
Dan Nicolaescu
ea81d57ec5 * mh-customize.el (mh-speedbar-selected-folder-face): Special case
high number of colors displays.

* textmodes/table.el (table-cell-face): Add special case for
displays supporting a high number of colors.
* progmodes/vhdl-mode.el (vhdl-font-lock-prompt-face)
(vhdl-font-lock-reserved-words-face)
(vhdl-speedbar-architecture-face)
(vhdl-speedbar-instantiation-face)
(vhdl-speedbar-architecture-selected-face)
(vhdl-speedbar-instantiation-selected-face): Likewise.
* progmodes/sh-script.el (sh-heredoc-face): Likewise.
* progmodes/idlw-help.el (idlwave-help-link-face): Likewise.
* progmodes/ebrowse.el (ebrowse-tree-mark-face)
(ebrowse-root-class-face, ebrowse-member-attribute-face)
(ebrowse-progress-face): Likewise.
* progmodes/compile.el (compilation-info-face): Likewise.
* progmodes/cc-fonts.el (c-invalid-face): Likewise.
* emacs-lisp/re-builder.el (reb-match-3): Likewise.
* calendar/calendar.el (diary-face): Likewise.
* woman.el (woman-italic-face, woman-bold-face)
(woman-unknown-face): Likewise.
* wid-edit.el (widget-button-pressed-face): Likewise.
* whitespace.el (whitespace-highlight-face): Likewise.
* smerge-mode.el (smerge-mine-face, smerge-base-face): Likewise.
* pcvs-info.el (cvs-marked-face): Likewise.
* info.el (info-xref): Likewise.
* ido.el (ido-subdir-face, ido-indicator-face): Likewise.
* hilit-chg.el (highlight-changes-face)
(highlight-changes-delete-face): Likewise.
* hi-lock.el (hi-yellow, hi-green, hi-blue-b, hi-green-b)
(hi-red-b): Likewise.
* generic-x.el (show-tabs-tab-face, show-tabs-space-face): Likewise.
* font-lock.el (font-lock-keyword-face)
(font-lock-function-name-face, font-lock-warning-face): Likewise.
* cus-edit.el (custom-invalid-face, custom-modified-face)
(custom-set-face, custom-changed-face, custom-variable-tag-face)
(custom-group-tag-face-1, custom-group-tag-face): Likewise.
* comint.el (comint-highlight-prompt): Likewise.
2005-04-08 14:26:13 +00:00
Richard M. Stallman
fd07aeb320 (whitespace-unload-hook): Set the variable. 2004-10-16 15:26:23 +00:00
Richard M. Stallman
35bf5a4e07 (global-whitespace-mode): New alias for whitespace-global-mode. 2004-08-22 17:04:22 +00:00
Miles Bader
1f3ddf11e8 Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-196
Remove RCS keywords

2004-04-10  Miles Bader  <miles@gnu.org>

   RCS keyword removal (only non-comment changes are enumerated here):

   * lisp/emacs-lisp/bytecomp.el (byte-compile-version): Variable removed.
   (byte-compile-insert-header): Don't use `byte-compile-version'.
   * lisp/url/url-vars.el (url-version): Use the constant string "Emacs"
   instead of calculating something from the RCS `State' keyword
   [the latter is almost entirely useless anyway].
   * lisp/forms.el (forms-version): Variable removed.
   (forms-mode): Don't use `forms-version'.
   * lisp/recentf.el (recentf-version): Variable removed.
   * lisp/progmodes/delphi.el (delphi-version): Variable removed.
   * lisp/progmodes/ada-mode.el (ada-mode): RCS keyword removed from docstring.
2004-04-10 05:55:49 +00:00
Rajesh Vaidheeswarran
c98ddbe5da whitespace.el now takes user customizable variable to display cleanliness of
files.

ffap.el - bugfix.
2003-09-29 18:05:31 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Rajesh Vaidheeswarran
72f295ec18 Respect user preference 2003-06-11 04:00:33 +00:00
Rajesh Vaidheeswarran
37a23b5dfd Update whitespace.el 2003-06-11 03:50:45 +00:00
Rajesh Vaidheeswarran
9800cbdd7f Add :link to commentary section 2003-05-13 14:30:58 +00:00
Andreas Schwab
26e57f3b8a (whitespace-highlight-face): Fix face spec. 2002-12-03 00:10:40 +00:00
Juanma Barranquero
e23d264da6 (whitespace-unload-hook): Call `remove-hook' with three arguments, not four. 2002-09-13 06:21:51 +00:00
Stefan Monnier
07089c848f (whitespace-global-mode): Use define-minor-mode. Use the new file hook names.
(whitespace-describe): Remove.  Move the text to `Commentary:'.
(whitespace-unload-hook): Use the new file hook names.
2002-09-11 21:30:25 +00:00
Rajesh Vaidheeswarran
5dc2e846a7 Whitespace.el v3.2 for colorized display of bogus whitespaces. 2001-12-13 17:34:57 +00:00
Rajesh Vaidheeswarran
1f8437c4f0 whitespace 3.1 2001-08-20 20:56:08 +00:00
Gerd Moellmann
e4494044fb (whitespace-global-mode): Add autoload cookie. 2001-08-20 10:05:03 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Rajesh Vaidheeswarran
9a46e95c9b Add Ident line. 2001-03-22 21:31:51 +00:00
Rajesh Vaidheeswarran
a3db02ad94 whitespace.el version 3.0 with buffer local toggle capability. 2001-03-22 21:30:11 +00:00
Dave Love
75d2d89f51 (whitespace-global-mode): Fix typo. 2001-01-04 15:36:59 +00:00
Dave Love
e7cff5504b Fix copyright years. 2000-12-06 20:24:23 +00:00
Dave Love
fc3337909b Doc fixes.
(top-level): Don't add hooks here.
(whitespace-running-emacs): Deleted.
(timer): Don't require.
(whitespace): Add back :version conditional on xemacs test.
(whitespace-spacetab-regexp, whitespace-indent-regexp)
(whitespace-ateol-regexp, whitespace-modes): Fix custom type.
(whitespace-force-mode-line-update, whitespace-refresh-rescan-list)
(whitespace-tickle-timer, whitespace-rescan-files-in-buffers):
Avoid specific xemacs test.
(whitespace-global-mode): New option.
(whitespace-global-mode): New command.
(whitespace-unload-hook): New function.
2000-10-15 17:07:55 +00:00
Rajesh Vaidheeswarran
bff7108734 Update whitespace.el - comment out the :version string, since it
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.
2000-06-07 19:04:57 +00:00
Rajesh Vaidheeswarran
7f565d8708 Update whitespace.el with a more tolerable timer scan time.
Update e-mail address.
2000-05-31 18:39:14 +00:00
Dave Love
ba27ebd204 (whitespace): Add :version to defgroup. 2000-02-02 15:01:39 +00:00
Gerd Moellmann
0e38b2a220 (whitespace-update-modeline): Bugfix to ensure
that the modeline display was updated *only* when
`whitespace-display-in-modeline' was set, not otherwise.
1999-10-31 13:59:19 +00:00
Gerd Moellmann
07dc417520 (whitespace-version): Update to 2.8
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.
1999-10-30 21:10:54 +00:00
Gerd Moellmann
dd24f431be (whitespace-version): Update to 2.6
(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
1999-10-30 19:21:43 +00:00
Richard M. Stallman
217425d076 (whitespace-mode, whitespace-mode-line): Add defvars. 1999-09-15 23:46:29 +00:00
Richard M. Stallman
18d51459aa (whitespace-version): Update version to 2.4
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.
1999-09-14 22:30:11 +00:00