From 281b9e42a49c72be48f881f94a5ec33537508118 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Thu, 7 May 2020 01:52:50 +0100 Subject: [PATCH] ; 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. --- lisp/dnd.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ...) -- 2.39.5