]> code.delx.au - gnu-emacs-elpa/commitdiff
Clarify the meaning of cdr in the prefix cons
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 17 Mar 2015 19:06:21 +0000 (21:06 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 17 Mar 2015 19:06:21 +0000 (21:06 +0200)
#319

company.el

index d61245eed51362e5cf6c0c77abd5a774018e9edd..01e1d04b307ee22e3a72031b98291e00d1051542 100644 (file)
@@ -342,8 +342,9 @@ 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.
+and cdr is used instead of the actual prefix length in the comparison
+against `company-minimum-prefix-length'.  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.