[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6165cb2 083/173: Don't "adjust key" (#422)
From: |
Dmitry Gutov |
Subject: |
[elpa] master 6165cb2 083/173: Don't "adjust key" (#422) |
Date: |
Thu, 23 Jun 2016 00:28:40 +0000 (UTC) |
branch: master
commit 6165cb2d7bfd1ad704436704f2e44a62e9ea3cba
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Don't "adjust key" (#422)
---
company-yasnippet.el | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/company-yasnippet.el b/company-yasnippet.el
index 37970b0..8dac5e9 100644
--- a/company-yasnippet.el
+++ b/company-yasnippet.el
@@ -84,7 +84,7 @@
(maphash
(lambda (name template)
(push
- (propertize (company-yasnippet--adjust-key key prefix
key-prefix)
+ (propertize key
'yas-annotation name
'yas-template template
'yas-prefix-offset (- (length key-prefix)
@@ -95,17 +95,6 @@
res))
tables))
-(defun company-yasnippet--adjust-key (key prefix key-prefix)
- (let ((pl (length prefix))
- (kpl (length key-prefix)))
- (cond
- ((= pl kpl)
- key)
- ((> pl kpl)
- (concat (substring prefix 0 (- pl kpl)) key))
- (t
- (substring key (- kpl pl))))))
-
;;;###autoload
(defun company-yasnippet (command &optional arg &rest ignore)
"`company-mode' backend for `yasnippet'.
- [elpa] master 4a6eea9 089/173: Use company-dabbrev-char-regexp more consistently (#433), (continued)
- [elpa] master 4a6eea9 089/173: Use company-dabbrev-char-regexp more consistently (#433), Dmitry Gutov, 2016/06/22
- [elpa] master a3858be 086/173: Ignore trigger key prefixes that are shorter than symbol-at-point, Dmitry Gutov, 2016/06/22
- [elpa] master 3726fe2 093/173: [ci skip] Use the "generic" language, Dmitry Gutov, 2016/06/22
- [elpa] master 946c798 095/173: Handle empty list of candidates, Dmitry Gutov, 2016/06/22
- [elpa] master c656b25 079/173: Merge pull request #418 from PythonNut/master, Dmitry Gutov, 2016/06/22
- [elpa] master 931e758 101/173: Fix the workaround, Dmitry Gutov, 2016/06/22
- [elpa] master 049b0e6 048/173: company--begin-new: Check the value of c, Dmitry Gutov, 2016/06/22
- [elpa] master 250ca1c 088/173: Add company-etags-everywhere, Dmitry Gutov, 2016/06/22
- [elpa] master 21da29b 082/173: Update copyright, Dmitry Gutov, 2016/06/22
- [elpa] master cec8779 075/173: Introduce company-search-regexp-function, Dmitry Gutov, 2016/06/22
- [elpa] master 6165cb2 083/173: Don't "adjust key" (#422),
Dmitry Gutov <=
- [elpa] master e5177c9 105/173: Add company-tooltip-annotation-selection face, Dmitry Gutov, 2016/06/22
- [elpa] master 75e21f6 045/173: company-css: Support web-mode, Dmitry Gutov, 2016/06/22
- [elpa] master e6ea779 004/173: Add `company-diag', Dmitry Gutov, 2016/06/22
- [elpa] master 0b37d17 044/173: company-mode: Mention the sorting order, Dmitry Gutov, 2016/06/22
- [elpa] master c6af7d2 061/173: Mention the previous change in NEWS [ci skip], Dmitry Gutov, 2016/06/22
- [elpa] master 5d68a50 069/173: [Fix #317] Allow :sorted keyword in grouped backends, Dmitry Gutov, 2016/06/22
- [elpa] master 87351aa 073/173: Double space, Dmitry Gutov, 2016/06/22
- [elpa] master 8952cfe 085/173: Handle key prefix being shorter than prefix (#422), Dmitry Gutov, 2016/06/22
- [elpa] master c2e5981 017/173: Remove company-ropemacs, Dmitry Gutov, 2016/06/22
- [elpa] master d97c98f 076/173: company-search-candidates: Mention company-search-regexp-function, Dmitry Gutov, 2016/06/22