diff options
| author | Magnus Henoch | 2006-11-23 08:42:06 +0000 |
|---|---|---|
| committer | Magnus Henoch | 2006-11-23 08:42:06 +0000 |
| commit | 48d2bac4519b3434dfb862ed1c9310cad1ddf9dc (patch) | |
| tree | 5fd46c57325632fd279933dabbef8751fc8edb1c | |
| parent | f0d64cfca0337c790c5f80c163ac88275569dac2 (diff) | |
| download | emacs-48d2bac4519b3434dfb862ed1c9310cad1ddf9dc.tar.gz emacs-48d2bac4519b3434dfb862ed1c9310cad1ddf9dc.zip | |
(url-display-percentage): Only show a message if `url-show-status' is non-nil.
| -rw-r--r-- | lisp/url/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/url/url-util.el | 13 |
2 files changed, 15 insertions, 6 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index bcd4eac16c2..597c27bed67 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2006-11-23 Diane Murray <disumu@x3y2z1.net> | ||
| 2 | |||
| 3 | * url-http.el (url-http-content-length-after-change-function): Use | ||
| 4 | `url-lazy-message'. | ||
| 5 | |||
| 6 | * url-util.el (url-display-percentage): Only show a message if | ||
| 7 | `url-show-status' is non-nil. | ||
| 8 | |||
| 1 | 2006-11-15 Magnus Henoch <mange@freemail.hu> | 9 | 2006-11-15 Magnus Henoch <mange@freemail.hu> |
| 2 | 10 | ||
| 3 | * url-http.el (url-http): Make proxy-object buffer-local, to | 11 | * url-http.el (url-http): Make proxy-object buffer-local, to |
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." | |||
| 244 | 244 | ||
| 245 | ;;;###autoload | 245 | ;;;###autoload |
| 246 | (defun url-display-percentage (fmt perc &rest args) | 246 | (defun url-display-percentage (fmt perc &rest args) |
| 247 | (if (null fmt) | 247 | (when url-show-status |
| 248 | (if (fboundp 'clear-progress-display) | 248 | (if (null fmt) |
| 249 | (clear-progress-display)) | 249 | (if (fboundp 'clear-progress-display) |
| 250 | (if (and (fboundp 'progress-display) perc) | 250 | (clear-progress-display)) |
| 251 | (apply 'progress-display fmt perc args) | 251 | (if (and (fboundp 'progress-display) perc) |
| 252 | (apply 'message fmt args)))) | 252 | (apply 'progress-display fmt perc args) |
| 253 | (apply 'message fmt args))))) | ||
| 253 | 254 | ||
| 254 | ;;;###autoload | 255 | ;;;###autoload |
| 255 | (defun url-percentage (x y) | 256 | (defun url-percentage (x y) |