X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/be520aca79dd429d55012a1916bdc97f06773fc5..1adfb5ee55d16cd3d9d78998ae7bbb8e5708d9c5:/lisp/obsolete/old-whitespace.el diff --git a/lisp/obsolete/old-whitespace.el b/lisp/obsolete/old-whitespace.el index c33794f668..63af3693b5 100644 --- a/lisp/obsolete/old-whitespace.el +++ b/lisp/obsolete/old-whitespace.el @@ -1,6 +1,6 @@ ;;; whitespace.el --- warn about and clean bogus whitespaces in the file -;; Copyright (C) 1999-2011 Free Software Foundation, Inc. +;; Copyright (C) 1999-2016 Free Software Foundation, Inc. ;; Author: Rajesh Vaidheeswarran ;; Keywords: convenience @@ -35,9 +35,9 @@ ;; 4. Spaces followed by a TAB. (Almost always, we never want that). ;; 5. Spaces or TABS at the end of a line. ;; -;; Whitespace errors are reported in a buffer, and on the modeline. +;; Whitespace errors are reported in a buffer, and on the mode line. ;; -;; Modeline will show a W:! to denote a particular type of whitespace, +;; Mode line will show a W:! to denote a particular type of whitespace, ;; where `x' and `y' can be one (or more) of: ;; ;; e - End-of-Line whitespace. @@ -46,7 +46,7 @@ ;; s - Space followed by Tab. ;; t - Trailing whitespace. ;; -;; If any of the whitespace checks is turned off, the modeline will display a +;; If any of the whitespace checks is turned off, the mode line will display a ;; !. ;; ;; (since (3) is the most controversial one, here is the rationale: Most @@ -230,7 +230,7 @@ this variable." :group 'whitespace) (defcustom whitespace-silent nil - "All whitespace errors will be shown only in the modeline when t. + "All whitespace errors will be shown only in the mode line when t. Note that setting this may cause all whitespaces introduced in a file to go unnoticed when the buffer is killed, unless the user visits the `*Whitespace @@ -259,7 +259,7 @@ These are mostly programming and documentation modes. But you may add other modes that you want whitespaces checked in by adding something like the following to your `.emacs': -\(setq whitespace-modes (cons 'my-mode (cons 'my-other-mode +\(setq whitespace-modes (cons \\='my-mode (cons \\='my-other-mode whitespace-modes))\) Or, alternately, you can use the Emacs `customize' command to set this." @@ -288,12 +288,6 @@ To disable timer scans, set this to zero." :type 'boolean :group 'whitespace) -(defgroup whitespace-faces nil - "Faces used in whitespace." - :prefix "whitespace-" - :group 'whitespace - :group 'faces) - (defface whitespace-highlight '((((class color) (background light)) (:background "green1")) (((class color) (background dark)) @@ -305,7 +299,7 @@ To disable timer scans, set this to zero." (background dark)) (:background "white"))) "Face used for highlighting the bogus whitespaces that exist in the buffer." - :group 'whitespace-faces) + :group 'whitespace) (define-obsolete-face-alias 'whitespace-highlight-face 'whitespace-highlight "22.1") @@ -515,12 +509,12 @@ See `whitespace-buffer' docstring for a summary of the problems." (whitespace-check-whitespace-mode current-prefix-arg) (if (and buffer-file-name whitespace-mode) (let ((whitespace-any nil) - (whitespace-tabwith 8) - (whitespace-tabwith-saved tab-width)) + (whitespace-tabwidth 8) + (whitespace-tabwidth-saved tab-width)) ;; since all printable TABS should be 8, irrespective of how ;; they are displayed. - (setq tab-width whitespace-tabwith) + (setq tab-width whitespace-tabwidth) (if (and whitespace-check-buffer-leading (whitespace-buffer-leading)) @@ -562,7 +556,7 @@ See `whitespace-buffer' docstring for a summary of the problems." (message "The region is now clean") (message "%s is now clean" buffer-file-name))) (whitespace-update-modeline))) - (setq tab-width whitespace-tabwith-saved)))) + (setq tab-width whitespace-tabwidth-saved)))) ;;;###autoload (defun whitespace-cleanup-region (s e) @@ -653,7 +647,7 @@ If highlighting is enabled, highlight these characters." nil))) (defun whitespace-update-modeline (&optional whitespace-err) - "Update modeline with whitespace errors. + "Update mode line with whitespace errors. Also with whitespaces whose testing has been turned off." (if whitespace-display-in-modeline (progn