]> code.delx.au - gnu-emacs-elpa/commitdiff
company-backends: Add "to this command"
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 4 Dec 2014 12:22:05 +0000 (14:22 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 4 Dec 2014 12:22:05 +0000 (14:22 +0200)
company.el

index cc6ab795acda5a674f656df0c393ca235545ecd9..aad2e65e992f58d3d5a31742ebb8b34ac56a2d71 100644 (file)
@@ -340,12 +340,12 @@ The first argument is the command requested from the back-end.  It is one
 of the following:
 
 `prefix': The back-end should return the text to be completed.  It must be
 of the following:
 
 `prefix': The back-end should return the text to be completed.  It must be
-text immediately before point.  Returning nil passes control to the next
-back-end.  The function should return `stop' if it should complete but
-cannot (e.g. if it is in the middle of a string).  Instead of a string,
-the back-end may return a cons where car is the prefix and cdr is used in
-`company-minimum-prefix-length' test.  It must be either number or t, and
-in the latter case the test automatically succeeds.
+text immediately before point.  Returning nil from this command passes
+control to the next back-end.  The function should return `stop' if it
+should complete but cannot (e.g. if it is in the middle of a string).
+Instead of a string, the back-end may return a cons where car is the prefix
+and cdr is used in `company-minimum-prefix-length' test.  It must be either
+number or t, and in the latter case the test automatically succeeds.
 
 `candidates': The second argument is the prefix to be completed.  The
 return value should be a list of candidates that match the prefix.
 
 `candidates': The second argument is the prefix to be completed.  The
 return value should be a list of candidates that match the prefix.