]> code.delx.au - gnu-emacs-elpa/commitdiff
Improve the example in the Commentary
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 20 Jan 2016 15:10:21 +0000 (18:10 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 20 Jan 2016 15:10:21 +0000 (18:10 +0300)
company.el

index 9c44f4b2c09a28e0f8a34777369338098aea3e1f..f71656ffab988bdca81273a4648dd230c5ed2566 100644 (file)
@@ -45,8 +45,7 @@
 ;;
 ;; (defun company-my-backend (command &optional arg &rest ignored)
 ;;   (pcase command
-;;     (`prefix (when (looking-back "foo\\>")
-;;               (match-string 0)))
+;;     (`prefix (company-grab-symbol))
 ;;     (`candidates (list "foobar" "foobaz" "foobarbaz"))
 ;;     (`meta (format "This value is named %s" arg))))
 ;;