1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-23 18:47:57 +00:00

; 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.
This commit is contained in:
Basil L. Contovounesios 2020-06-01 16:56:26 +01:00
parent 1b6bd97440
commit 6d6ec1bc1e
2 changed files with 1 additions and 4 deletions

View 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)

View 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