From: Basil L. Contovounesios Date: Thu, 7 May 2020 00:52:50 +0000 (+0100) Subject: ; Fix recent byte-compiler warnings in dnd.el X-Git-Tag: emacs-28.0.90~7422 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=281b9e42a49c72be48f881f94a5ec33537508118;p=emacs.git ; Fix recent byte-compiler warnings in dnd.el * lisp/dnd.el (dnd-handle-one-url): Don't require browse-url twice in the same function. Declare non-autoloaded browse-url-handlers to silence byte-compiler. --- diff --git a/lisp/dnd.el b/lisp/dnd.el index 2f7b16c56ed..b649e725f25 100644 --- a/lisp/dnd.el +++ b/lisp/dnd.el @@ -102,7 +102,7 @@ is what has been dropped. Returns ACTION." (throw 'done t))) nil) (catch 'done - (require 'browse-url) ;; browse-url-handlers is not autoloaded. + (defvar browse-url-handlers) ;; Not autoloaded. (dolist (bf (append ;; The alist choice of browse-url-browser-function ;; is deprecated since 28.1, so the (unless ...)