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

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

[elpa] 03/28: company-dabbrev-minimum-length: change the initvalue and d


From: Dmitry Gutov
Subject: [elpa] 03/28: company-dabbrev-minimum-length: change the initvalue and document better
Date: Wed, 27 Aug 2014 01:26:19 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 8a7002515f04ae07a120c299a52af2f95e94b73b
Author: Dmitry Gutov <address@hidden>
Date:   Thu Jul 31 19:44:04 2014 +0300

    company-dabbrev-minimum-length: change the initvalue and document better
    
    #158
---
 NEWS.md            |    5 +++++
 company-dabbrev.el |    8 +++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/NEWS.md b/NEWS.md
index fe1313c..04788ab 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,5 +1,10 @@
 # History of user-visible changes
 
+# Next
+
+* The default value of `company-dabbrev-minimum-length` is set to 4, 
independent
+  of what `company-minimum-prefix-length` is set to.
+
 ## 2014-07-26 (0.8.2)
 
 * New user option `company-occurrence-weight-function`, allowing to tweak the
diff --git a/company-dabbrev.el b/company-dabbrev.el
index 3d57bb5..3ca8e33 100644
--- a/company-dabbrev.el
+++ b/company-dabbrev.el
@@ -63,9 +63,11 @@ Any other value means downcase.
 If you set this value to nil, you may also want to set
 `company-dabbrev-ignore-case' to any value other than `keep-prefix'.")
 
-(defcustom company-dabbrev-minimum-length (1+ company-minimum-prefix-length)
-  "The minimum length for the string to be included."
-  :type 'integer)
+(defcustom company-dabbrev-minimum-length 4
+  "The minimum length for the completion candidate to be included.
+This variable affects both `company-dabbrev' and `company-dabbrev-code'."
+  :type 'integer
+  :package-version '(company . "0.8.3"))
 
 (defmacro company-dabrev--time-limit-while (test start limit &rest body)
   (declare (indent 3) (debug t))



reply via email to

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