diff options
author | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2010-10-02 04:04:20 +0200 |
---|---|---|
committer | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2010-10-02 04:04:20 +0200 |
commit | 08b8ba9fae180c04036b748d5838a5768b013c1d (patch) | |
tree | a3b5248d781c2337b04d25d196c2674b345fbd97 /lisp/url/url-util.el | |
parent | 20a5e99685c1b5b5739f21147d68b31f5726cc07 (diff) | |
download | emacs-08b8ba9fae180c04036b748d5838a5768b013c1d.tar.gz emacs-08b8ba9fae180c04036b748d5838a5768b013c1d.tar.bz2 emacs-08b8ba9fae180c04036b748d5838a5768b013c1d.zip |
Modify url-retrieve and related functions and structures to respect a
`silent' flag to signal that the operation should be silent.
Diffstat (limited to 'lisp/url/url-util.el')
-rw-r--r-- | lisp/url/url-util.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el index 8beffe60a7f..0768af4baa8 100644 --- a/lisp/url/url-util.el +++ b/lisp/url/url-util.el @@ -177,11 +177,17 @@ Strips out default port numbers, etc." (defun url-lazy-message (&rest args) "Just like `message', but is a no-op if called more than once a second. Will not do anything if `url-show-status' is nil." - (if (or (null url-show-status) + (if (or (and url-current-object + (url-silent url-current-object)) + (null url-show-status) (active-minibuffer-window) (= url-lazy-message-time (setq url-lazy-message-time (nth 1 (current-time))))) nil + (message "hei: %s" url-current-object) + (with-current-buffer (get-buffer-create "back") + (let ((standard-output (current-buffer))) + (backtrace))) (apply 'message args))) ;;;###autoload @@ -222,7 +228,9 @@ Will not do anything if `url-show-status' is nil." ;;;###autoload (defun url-display-percentage (fmt perc &rest args) - (when url-show-status + (when (and url-show-status + (or (null url-current-object) + (not (url-silent url-current-object)))) (if (null fmt) (if (fboundp 'clear-progress-display) (clear-progress-display)) |