summaryrefslogtreecommitdiff
path: root/lisp/url/url-util.el
diff options
context:
space:
mode:
authorMagnus Henoch <mange@freemail.hu>2006-11-23 08:42:06 +0000
committerMagnus Henoch <mange@freemail.hu>2006-11-23 08:42:06 +0000
commit48d2bac4519b3434dfb862ed1c9310cad1ddf9dc (patch)
tree5fd46c57325632fd279933dabbef8751fc8edb1c /lisp/url/url-util.el
parentf0d64cfca0337c790c5f80c163ac88275569dac2 (diff)
downloademacs-48d2bac4519b3434dfb862ed1c9310cad1ddf9dc.tar.gz
emacs-48d2bac4519b3434dfb862ed1c9310cad1ddf9dc.tar.bz2
emacs-48d2bac4519b3434dfb862ed1c9310cad1ddf9dc.zip
(url-display-percentage): Only show a message if `url-show-status' is non-nil.
Diffstat (limited to 'lisp/url/url-util.el')
-rw-r--r--lisp/url/url-util.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el
index 0aeb141c017..57c0f05661d 100644
--- a/lisp/url/url-util.el
+++ b/lisp/url/url-util.el
@@ -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)