1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

; 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.
This commit is contained in:
Basil L. Contovounesios 2020-05-07 01:52:50 +01:00
parent 86fef6ab89
commit 281b9e42a4

View file

@ -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 ...)