branch: master
commit ed1085f43376fc26f10517ec6205a41fab43c245
Merge: 67650de 287a5fb
Author: Dmitry Gutov <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #771 from Wilfred/interactive-example
Make example backend interactive
---
company.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/company.el b/company.el
index f4355b3..a62a2cb 100644
--- a/company.el
+++ b/company.el
@@ -44,7 +44,9 @@
;; Here is a simple example completing "foo":
;;
;; (defun company-my-backend (command &optional arg &rest ignored)
+;; (interactive (list 'interactive))
;; (pcase command
+;; (`interactive (company-begin-backend 'company-my-backend))
;; (`prefix (company-grab-symbol))
;; (`candidates (list "foobar" "foobaz" "foobarbaz"))
;; (`meta (format "This value is named %s" arg))))