Silence byte compiler

* Declare undeclared external functions

* Add ext: prefix to filename of external packages that may not be present on
  every system

* Remove `company-grab-symbol-cons` function declaration since this function is
  no longer used.
This commit is contained in:
Nathaniel Nicandro 2018-10-25 13:30:25 -05:00
parent 2f2ac53851
commit 890f5ab3cb
4 changed files with 24 additions and 5 deletions

View file

@ -38,6 +38,10 @@
(require 'hmac-def)
(require 'jupyter-kernelspec)
(declare-function tramp-dissect-file-name "tramp" (name &optional nodefault))
(declare-function tramp-tramp-file-p "tramp" (name))
(declare-function tramp-file-name-user "tramp")
(declare-function tramp-file-name-host "tramp")
(defcustom jupyter-include-other-output nil
"Whether or not to handle IOPub messages from other clients.

View file

@ -33,6 +33,8 @@
(require 'jupyter-messages)
(require 'jupyter-client)
(declare-function ansi-color-apply "ansi-color" (string))
(defgroup jupyter-kernel-manager nil
"Jupyter kernel manager"
:group 'jupyter)

View file

@ -32,7 +32,11 @@
(declare-function org-at-drawer-p "org")
(declare-function org-in-regexp "org" (regexp &optional nlines visually))
(declare-function org-in-src-block-p "org" (&optional inside))
(declare-function org-element-at-point "org-element")
(declare-function org-element-property "org-element")
(declare-function org-babel-python-table-or-string "ob-python" (results))
(declare-function org-babel-jupyter-initiate-session "ob-jupyter" (&optional session params))
(defcustom jupyter-org-resource-directory "./.ob-jupyter/"
"Directory used to store automatically generated image files.

View file

@ -64,12 +64,21 @@
(require 'ring)
(require 'ansi-color)
(declare-function company-begin-backend "company" (backend &optional callback))
(declare-function company-doc-buffer "company" (&optional string))
(declare-function company-grab-symbol-cons "company" (idle-begin-after-re &optional max-len))
(declare-function company-begin-backend "ext:company" (backend &optional callback))
(declare-function company-doc-buffer "ext:company" (&optional string))
(declare-function company-post-command "ext:company")
(declare-function company-input-noop "ext:company")
(declare-function company-auto-begin "ext:company")
(declare-function org-format-latex "org" (prefix &optional beg end dir overlays msg forbuffer processing-type))
(declare-function markdown-link-at-pos "markdown-mode" (pos))
(declare-function markdown-follow-link-at-point "markdown-mode")
(declare-function markdown-link-at-pos "ext:markdown-mode" (pos))
(declare-function markdown-follow-link-at-point "ext:markdown-mode")
(declare-function yas-minor-mode "ext:yasnippet" (&optional arg))
(declare-function yas-expand-snippet "ext:yasnippet" (content &optional start end expand-env))
(declare-function string-trim "subr-x")
;; TODO: Fallbacks for when the language doesn't have a major mode installed.