;; Added `company-begin-with' for starting company from elisp-code.
;; Added hooks.
;; Added `company-require-match' and `company-auto-complete' options.
;; Added `company-begin-with' for starting company from elisp-code.
;; Added hooks.
;; Added `company-require-match' and `company-auto-complete' options.
(add-to-list 'debug-ignored-errors "^No \\(document\\|loc\\)ation available$")
(add-to-list 'debug-ignored-errors "^Company not ")
(add-to-list 'debug-ignored-errors "^No candidate number ")
(add-to-list 'debug-ignored-errors "^No \\(document\\|loc\\)ation available$")
(add-to-list 'debug-ignored-errors "^Company not ")
(add-to-list 'debug-ignored-errors "^No candidate number ")
that option the other way around.
The back-end should return nil for all commands it does not support or
that option the other way around.
The back-end should return nil for all commands it does not support or
(defun company-begin-backend (backend &optional callback)
"Start a completion at point using BACKEND."
(defun company-begin-backend (backend &optional callback)
"Start a completion at point using BACKEND."
(add-hook 'company-completion-cancelled-hook 'company-remove-callback nil t)
(add-hook 'company-completion-finished-hook company-callback nil t))
(setq company-backend backend)
(add-hook 'company-completion-cancelled-hook 'company-remove-callback nil t)
(add-hook 'company-completion-finished-hook company-callback nil t))
(setq company-backend backend)