diff options
author | Magnus Henoch <mange@freemail.hu> | 2006-11-23 08:42:06 +0000 |
---|---|---|
committer | Magnus Henoch <mange@freemail.hu> | 2006-11-23 08:42:06 +0000 |
commit | 48d2bac4519b3434dfb862ed1c9310cad1ddf9dc (patch) | |
tree | 5fd46c57325632fd279933dabbef8751fc8edb1c /lisp/url/url-util.el | |
parent | f0d64cfca0337c790c5f80c163ac88275569dac2 (diff) | |
download | emacs-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.el | 13 |
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) |