]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix recent byte-compiler warnings in dnd.el
authorBasil L. Contovounesios <contovob@tcd.ie>
Thu, 7 May 2020 00:52:50 +0000 (01:52 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Thu, 7 May 2020 00:54:43 +0000 (01:54 +0100)
* 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

index 2f7b16c56edd68a2a2b8b83b281b91b3009b5eb7..b649e725f256a93016dc181478b03a8a1554b84b 100644 (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 ...)