Respect user preference
authorRajesh Vaidheeswarran <rv@gnu.org>
Wed, 11 Jun 2003 04:00:33 +0000 (04:00 +0000)
committerRajesh Vaidheeswarran <rv@gnu.org>
Wed, 11 Jun 2003 04:00:33 +0000 (04:00 +0000)
lisp/ChangeLog
lisp/whitespace.el

index 867eb82..42770d3 100644 (file)
@@ -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.
        
index 7750c19..a833e85 100644 (file)
@@ -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 @@ whitespace problems."
        (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))))