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

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

[elpa] master 27c913a 040/173: Don't use `require-match t' in normal bac


From: Dmitry Gutov
Subject: [elpa] master 27c913a 040/173: Don't use `require-match t' in normal backends
Date: Thu, 23 Jun 2016 00:28:36 +0000 (UTC)

branch: master
commit 27c913afb9446971d1e0f1f3b272e5650a6206c5
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Don't use `require-match t' in normal backends
    
    Fixes #351
---
 company-abbrev.el |    5 ++---
 company-tempo.el  |    3 +--
 company.el        |    7 ++++---
 3 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/company-abbrev.el b/company-abbrev.el
index a454aaa..0a849ad 100644
--- a/company-abbrev.el
+++ b/company-abbrev.el
@@ -1,6 +1,6 @@
 ;;; company-abbrev.el --- company-mode completion back-end for abbrev
 
-;; Copyright (C) 2009-2011  Free Software Foundation, Inc.
+;; Copyright (C) 2009-2011, 2015  Free Software Foundation, Inc.
 
 ;; Author: Nikolaj Schumacher
 
@@ -44,8 +44,7 @@
     (candidates (nconc
                  (delete "" (all-completions arg global-abbrev-table))
                  (delete "" (all-completions arg local-abbrev-table))))
-    (meta (abbrev-expansion arg))
-    (require-match t)))
+    (meta (abbrev-expansion arg))))
 
 (provide 'company-abbrev)
 ;;; company-abbrev.el ends here
diff --git a/company-tempo.el b/company-tempo.el
index ac91988..09d1dfb 100644
--- a/company-tempo.el
+++ b/company-tempo.el
@@ -1,6 +1,6 @@
 ;;; company-tempo.el --- company-mode completion back-end for tempo
 
-;; Copyright (C) 2009-2011  Free Software Foundation, Inc.
+;; Copyright (C) 2009-2011, 2015  Free Software Foundation, Inc.
 
 ;; Author: Nikolaj Schumacher
 
@@ -56,7 +56,6 @@
     (prefix (or (car (tempo-find-match-string tempo-match-finder)) ""))
     (candidates (all-completions arg (tempo-build-collection)))
     (meta (company-tempo-meta arg))
-    (require-match t)
     (sorted t)))
 
 (provide 'company-tempo)
diff --git a/company.el b/company.el
index ec42103..8bb7ea3 100644
--- a/company.el
+++ b/company.el
@@ -389,9 +389,10 @@ will be used when rendering the popup.  This command only 
makes sense for
 backends that provide non-prefix completion.
 
 `require-match': If this returns t, the user is not allowed to enter
-anything not offered as a candidate.  Use with care!  The default value nil
-gives the user that choice with `company-require-match'.  Return value
-`never' overrides that option the other way around.
+anything not offered as a candidate.  Please don't use that value in normal
+backends.  The default value nil gives the user that choice with
+`company-require-match'.  Return value `never' overrides that option the
+other way around.
 
 `init': Called once for each buffer. The back-end can check for external
 programs and files and load any required libraries.  Raising an error here



reply via email to

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