changeset 25732:5e14fd494b83

(whitespace-mode, whitespace-mode-line): Add defvars.
author Richard M. Stallman <rms@gnu.org>
date Wed, 15 Sep 1999 23:46:29 +0000
parents 62a49653ef38
children b2b3b42a23b3
files lisp/whitespace.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/whitespace.el	Wed Sep 15 23:29:16 1999 +0000
+++ b/lisp/whitespace.el	Wed Sep 15 23:46:29 1999 +0000
@@ -175,13 +175,15 @@
   :group 'whitespace)
 
 ;; Tell Emacs about this new kind of minor mode
+(defvar whitespace-mode nil
+  "Non-nil when Whitespace mode (a minor mode) is enabled.")
 (make-variable-buffer-local 'whitespace-mode)
 (put 'whitespace-mode 'permanent-local nil)
-(set-default 'whitespace-mode nil)
 
+(defvar whitespace-mode-line nil
+  "String to display in the mode line for Whitespace mode.")
 (make-variable-buffer-local 'whitespace-mode-line)
 (put 'whitespace-mode-line 'permanent-local nil)
-(set-default 'whitespace-mode-line nil)
 
 (if (not (assoc 'whitespace-mode minor-mode-alist))
     (setq minor-mode-alist (cons '(whitespace-mode whitespace-mode-line)