[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))
- [elpa] branch master updated (b6a1a9e -> 2d6cddf), Dmitry Gutov, 2014/08/26
- [elpa] 01/28: company-fill-propertize: tuncate the common part, Dmitry Gutov, 2014/08/26
- [elpa] 03/28: company-dabbrev-minimum-length: change the initvalue and document better,
Dmitry Gutov <=
- [elpa] 06/28: Use `window-body-width' instead of the now-alias `window-width', Dmitry Gutov, 2014/08/26
- [elpa] 07/28: company--window-inner-height: remove, use `window-body-height', Dmitry Gutov, 2014/08/26
- [elpa] 02/28: company-dabbrev--search-buffer: Use `syntax-ppss' to get to the beg of str-or-cmt, Dmitry Gutov, 2014/08/26
- [elpa] 04/28: Remove the "download ERT" logic; should be unused at this point, Dmitry Gutov, 2014/08/26
- [elpa] 08/28: Assign a face for the tooltip search string, Dmitry Gutov, 2014/08/26
- [elpa] 09/28: Merge pull request #164 from holomorph/tooltip-search, Dmitry Gutov, 2014/08/26
- [elpa] 10/28: Mention company-tooltip-search in NEWS, Dmitry Gutov, 2014/08/26
- [elpa] 11/28: Use window-screen-lines when available, Dmitry Gutov, 2014/08/26
- [elpa] 05/28: company--show-inline-p: never ignore case, Dmitry Gutov, 2014/08/26
- [elpa] 12/28: Tweak wording, Dmitry Gutov, 2014/08/26