]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix some recent byte-compilation warnings
authorBasil L. Contovounesios <contovob@tcd.ie>
Mon, 1 Jun 2020 15:56:26 +0000 (16:56 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Mon, 1 Jun 2020 15:56:26 +0000 (16:56 +0100)
For discussion of the autoloaded function declaration, see
https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg00910.html.

* lisp/dnd.el (dnd-handle-one-url): It is no longer necessary to
declare the autoloaded function browse-url-select-handler after
ldefs-boot.el was updated.
* lisp/progmodes/elisp-mode.el: Declare xref.el function to silence
byte-compiler.

lisp/dnd.el
lisp/progmodes/elisp-mode.el

index f47f4a2c30e3021a73d85c414195e09056a3731d..1d0e26cb0137cdd4c6b043f39517ccd0bbc2a835 100644 (file)
@@ -101,9 +101,6 @@ is what has been dropped.  Returns ACTION."
           (throw 'done t)))
        nil)
      (catch 'done
-       ;; Autoloaded but the byte-compiler still complains.
-       (declare-function browse-url-select-handler "browse-url"
-                         (url &optional kind))
        (let ((browser (browse-url-select-handler url 'internal)))
          (when browser
            (setq ret 'private)
index a0a0a0dc6a9149feefe84eb3309466857a29f1d0..8812c49ba4397ce7c171c1e4b3ae1b450fc4f1be 100644 (file)
@@ -861,7 +861,7 @@ non-nil result supercedes the xrefs produced by
 
     xrefs))
 
-(declare-function project-external-roots "project")
+(declare-function xref-apropos-regexp "xref" (pattern))
 
 (cl-defmethod xref-backend-apropos ((_backend (eql elisp)) pattern)
   (apply #'nconc