emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1221739 122/173: Improve the description of cons prefix


From: Dmitry Gutov
Subject: [elpa] master 1221739 122/173: Improve the description of cons prefix
Date: Thu, 23 Jun 2016 00:28:44 +0000 (UTC)

branch: master
commit 1221739dcc9c5ceb70544972d92fed8200347362
Author: Stefan Monnier <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Improve the description of cons prefix
---
 company.el |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/company.el b/company.el
index f71656f..0735630 100644
--- a/company.el
+++ b/company.el
@@ -333,10 +333,10 @@ of the following:
 text immediately before point.  Returning nil from this command passes
 control to the next backend.  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 backend may return a cons where car is the prefix
-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.
+Instead of a string, the backend may return a cons (PREFIX . LENGTH)
+where LENGTH is a number used in place of PREFIX's length when
+comparing against `company-minimum-prefix-length'.  LENGTH can also
+be just 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]