changeset 51543:38c9480b767a

Respect user preference
author Rajesh Vaidheeswarran <rv@gnu.org>
date Wed, 11 Jun 2003 04:00:33 +0000
parents ad8c09d9513c
children a0c2b39160e9
files lisp/ChangeLog lisp/whitespace.el
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Jun 11 03:50:45 2003 +0000
+++ b/lisp/ChangeLog	Wed Jun 11 04:00:33 2003 +0000
@@ -1,6 +1,8 @@
 2003-06-10  Rajesh Vaidheeswarran  <rv@gnu.org>
 
 	* whitespace.el (whitespace-version): bump to 3.3
+	(whitespace-cleanup): Respect user preference for silence
+
 	* whitespace.el: Remove :tag in commentary :link. Remove empty
 	lines in comment, since commentary seems to have a problem with that.
 	
--- a/lisp/whitespace.el	Wed Jun 11 03:50:45 2003 +0000
+++ b/lisp/whitespace.el	Wed Jun 11 04:00:33 2003 +0000
@@ -5,7 +5,7 @@
 ;; Author: Rajesh Vaidheeswarran <rv@gnu.org>
 ;; Keywords: convenience
 
-;; $Id: whitespace.el,v 1.23 2003/05/13 14:30:58 rv Exp $
+;; $Id: whitespace.el,v 1.24 2003/06/11 03:50:45 rv Exp $
 ;; This file is part of GNU Emacs.
 
 ;; GNU Emacs is free software; you can redistribute it and/or modify
@@ -570,7 +570,8 @@
 	(if whitespace-any
 	    (whitespace-cleanup)
 	  (progn
-	    (message "%s clean" buffer-file-name)
+	    (if (not whitespace-silent)
+		(message "%s clean" buffer-file-name))
 	    (whitespace-update-modeline)))
 	(setq tab-width whitespace-tabwith-saved))))