From 63010937854ddef7de29c774cd2155edc5410290 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 17 Mar 2015 21:06:21 +0200 Subject: [PATCH] Clarify the meaning of cdr in the prefix cons #319 --- company.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. -- 2.39.2