summaryrefslogtreecommitdiff
path: root/lisp/dnd.el
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2020-05-07 01:52:50 +0100
committerBasil L. Contovounesios <contovob@tcd.ie>2020-05-07 01:54:43 +0100
commit281b9e42a49c72be48f881f94a5ec33537508118 (patch)
treec9421626dd39611f356d955ae6fd0b8466b30854 /lisp/dnd.el
parent86fef6ab89ee54c6f78bc2064e55c5439e929827 (diff)
downloademacs-281b9e42a49c72be48f881f94a5ec33537508118.tar.gz
; 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.
Diffstat (limited to 'lisp/dnd.el')
-rw-r--r--lisp/dnd.el2
1 files changed, 1 insertions, 1 deletions
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 ...)