emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6d6ec1b: ; Fix some recent byte-compilation warnings


From: Basil L. Contovounesios
Subject: master 6d6ec1b: ; Fix some recent byte-compilation warnings
Date: Mon, 1 Jun 2020 12:05:20 -0400 (EDT)

branch: master
commit 6d6ec1bc1e784af786cc0436f54211095bf7a952
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    ; Fix some recent byte-compilation warnings
    
    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                  | 3 ---
 lisp/progmodes/elisp-mode.el | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/lisp/dnd.el b/lisp/dnd.el
index f47f4a2..1d0e26c 100644
--- a/lisp/dnd.el
+++ b/lisp/dnd.el
@@ -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)
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index a0a0a0d..8812c49 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]