]> code.delx.au - gnu-emacs-elpa/commitdiff
company-dabbrev-minimum-length: change the initvalue and document better
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 31 Jul 2014 16:44:04 +0000 (19:44 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 31 Jul 2014 16:44:04 +0000 (19:44 +0300)
#158

NEWS.md
company-dabbrev.el

diff --git a/NEWS.md b/NEWS.md
index fe1313cc607b0949caefdc86aebce1401de76b22..04788ab7deddf601fc81b468414183c16b0c762a 100644 (file)
--- 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
index 3d57bb5c2eb53405ab2436eb48b9f7b75860b16e..3ca8e339943b5ccb237c39b80e1c5b50053adbcb 100644 (file)
@@ -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))