]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve recent change to browse-url.el
authorBasil L. Contovounesios <contovob@tcd.ie>
Thu, 7 May 2020 15:59:26 +0000 (16:59 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Thu, 7 May 2020 15:59:26 +0000 (16:59 +0100)
* lisp/net/browse-url.el (browse-url-select-handler): Use lwarn with
specific warning type, as recommended in "(elisp) Warning Basics".

lisp/net/browse-url.el

index 3d55ee554f10936c9c5091be0b8904f2bf2da858..9d7eca72286f74aa57efd5296acac5bc0b373af7 100644 (file)
@@ -653,7 +653,8 @@ Emacs 28.1 and will be removed in a future release."
               ;; can be removed at some point in time.
               (when (and (consp browse-url-browser-function)
                         (not (functionp browse-url-browser-function)))
-                (warn "Having `browse-url-browser-function' set to an
+                (lwarn 'browse-url :warning
+                       "Having `browse-url-browser-function' set to an
 alist is deprecated.  Use `browse-url-handlers' instead.")
                 browse-url-browser-function)
               browse-url-handlers