From: Mattias EngdegÄrd Date: Wed, 3 Aug 2022 12:09:15 +0000 (+0200) Subject: ; * lisp/url/url-util.el (url-display-percentage): simplify X-Git-Tag: emacs-29.0.90~1447^2~508 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4bbd1f38ca43c543f27178ba9b2b600d25711c61;p=emacs.git ; * lisp/url/url-util.el (url-display-percentage): simplify --- diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el index b7fdd73762a..de8e6747975 100644 --- a/lisp/url/url-util.el +++ b/lisp/url/url-util.el @@ -193,10 +193,9 @@ Will not do anything if `url-show-status' is nil." ;;;###autoload (defun url-display-percentage (fmt _perc &rest args) (when (and url-show-status - (or (null url-current-object) - (not (url-silent url-current-object)))) - (when (not (null fmt)) - (apply 'message fmt args)))) + (not (and url-current-object (url-silent url-current-object))) + fmt) + (apply #'message fmt args))) ;;;###autoload (defun url-percentage (x y)