(url-display-percentage): Only show a message if `url-show-status' is non-nil.
authorMagnus Henoch <mange@freemail.hu>
Thu, 23 Nov 2006 08:42:06 +0000 (08:42 +0000)
committerMagnus Henoch <mange@freemail.hu>
Thu, 23 Nov 2006 08:42:06 +0000 (08:42 +0000)
lisp/url/ChangeLog
lisp/url/url-util.el

index bcd4eac..597c27b 100644 (file)
@@ -1,3 +1,11 @@
+2006-11-23  Diane Murray  <disumu@x3y2z1.net>
+
+       * url-http.el (url-http-content-length-after-change-function): Use
+       `url-lazy-message'.
+
+       * url-util.el (url-display-percentage): Only show a message if
+       `url-show-status' is non-nil.
+
 2006-11-15  Magnus Henoch  <mange@freemail.hu>
 
        * url-http.el (url-http): Make proxy-object buffer-local, to
index 0aeb141..57c0f05 100644 (file)
@@ -244,12 +244,13 @@ Will not do anything if `url-show-status' is nil."
 
 ;;;###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)