diff lisp/url/url-util.el @ 74135:e125bce98ce9

(url-display-percentage): Only show a message if `url-show-status' is non-nil.
author Magnus Henoch <mange@freemail.hu>
date Thu, 23 Nov 2006 08:40:50 +0000
parents 23d71f51857b
children e3694f1cb928 c71725faff1a
line wrap: on
line diff
--- a/lisp/url/url-util.el	Thu Nov 23 08:40:06 2006 +0000
+++ b/lisp/url/url-util.el	Thu Nov 23 08:40:50 2006 +0000
@@ -244,12 +244,13 @@
 
 ;;;###autoload
 (defun url-display-percentage (fmt perc &rest args)
-  (if (null fmt)
-      (if (fboundp 'clear-progress-display)
-	  (clear-progress-display))
-    (if (and (fboundp 'progress-display) perc)
-	(apply 'progress-display fmt perc args)
-      (apply 'message fmt args))))
+  (when url-show-status
+    (if (null fmt)
+	(if (fboundp 'clear-progress-display)
+	    (clear-progress-display))
+      (if (and (fboundp 'progress-display) perc)
+	  (apply 'progress-display fmt perc args)
+	(apply 'message fmt args)))))
 
 ;;;###autoload
 (defun url-percentage (x y)