Merge pull request #340 from leungbk/byte-comp

utop.el: Placate byte-compiler
This commit is contained in:
Rudi Grinberg 2021-04-03 20:13:38 -07:00 committed by GitHub
commit b2f15bff67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1139,6 +1139,8 @@ See https://github.com/diml/utop for configuration information."))
;; Load local file variables
(add-hook 'hack-local-variables-hook 'utop-hack-local-variables))
(defvar company-backends)
;;;###autoload
(define-derived-mode utop-mode fundamental-mode "utop"
"Set the buffer mode to utop."
@ -1223,6 +1225,9 @@ Special keys for utop:
(with-current-buffer buf (utop-mode)))))
buf))
(declare-function company-begin-backend "ext:company")
(declare-function company-grab-symbol-cons "ext:company")
(defun utop-company-backend (command &optional _arg &rest ignored)
"company backend for utop completions"
(interactive (list 'interactive))