From: Dmitry Gutov Date: Tue, 17 Mar 2015 19:06:21 +0000 (+0200) Subject: Clarify the meaning of cdr in the prefix cons X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/63010937854ddef7de29c774cd2155edc5410290 Clarify the meaning of cdr in the prefix cons #319 --- diff --git a/company.el b/company.el index d61245eed..01e1d04b3 100644 --- a/company.el +++ b/company.el @@ -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.